35 minutes. Instant-marked. Unlimited attempts. Each answer is marked as soon as you choose it, with an explanation. Nothing is saved in this course.
P1. For [5, 6, 7], the item at position 1 is:
Position 1 is the second item.
P2. For [5, 6, 7], item [-1] is:
The last item.
P3. len([3, 3, 3]) is:
Three items.
P4. sum([1, 2, 3, 4]) is:
The total.
P5. With d = {"a": 1}, d["a"] is:
The value of key a.
P6. With d = {"a": 1}, d["b"] gives:
Key not present.
P7. After d = {}, d["x"] = 5, len(d) is:
One pair was added.
P8. For records = [{"n": 1}, {"n": 2}], records[1]["n"] is:
Position 1, key n.