Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Python from Zero

Module 4 · Practice

Practice set: lists and dictionaries

Quick questions on the whole module, with instant feedback.

  • 35 minutes
  • Instant feedback
  • Unlimited attempts

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:

P2. For [5, 6, 7], item [-1] is:

P3. len([3, 3, 3]) is:

P4. sum([1, 2, 3, 4]) is:

P5. With d = {"a": 1}, d["a"] is:

P6. With d = {"a": 1}, d["b"] gives:

P7. After d = {}, d["x"] = 5, len(d) is:

P8. For records = [{"n": 1}, {"n": 2}], records[1]["n"] is:

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards