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 3 · Practice

Practice set: repetition

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. How many times does for i in range(6): run?

P2. What is the last value of i in range(1, 5)?

P3. A while loop with no update line usually:

P4. What does while 2 > 5: print("x") print?

P5. The total of the numbers 1 to 4 is:

P6. A counter that counts even numbers from 1 to 6 ends at:

P7. For x = 9, while x > 0: x = x - 5 leaves x equal to:

P8. Outer range(3) and inner range(2) run the inner body:

Review with flashcards

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

Open the module flashcards