35 results.
-
Question in Programming extension
Given an unknown list, the student has to write code to return the last item in the list.
-
Question in Programming extension
Given a randomly-generated list, the student must write code to return its first value.
There's an alternative to check if they get the second item, which they might do if they don't realise Python lists are zero-indexed.
-
Question in Programming extension
The student must write code to compute the standard deviation of an unknown list of measurements.
The suggested answer uses numpy.std.
-
Question in Programming extension
This is the simplest demonstration of the "code" part type I could think of: assign
x = 1.An alternative answer gives a hint if the studen'ts code doesn't define x at all.
-
Question in Manajit's workspace
This is the simplest demonstration of the "code" part type I could think of: write Python to assign
x = 1.An alternative answer gives a hint if the student's code doesn't define x at all.