Skip to main content
Module 1 · Learning to Drive

Lesson 8 · Hello, Python — Knowledge Checks

Name Date
  1. Which line is written correctly?

    1. A.Print("Driving...")
    2. B.print "Driving..."
    3. C.print("Driving...")
    4. D.print(Driving...)

    Answer Why?

  2. What's wrong with this line? for i in range(4)

    1. A.range should be capitalized
    2. B.It is missing the colon at the end — for i in range(4):
    3. C.It needs quotes around the 4
    4. D.Nothing is wrong

    Answer Why?

  3. Why does drivetrain.straight(-30) drive the robot backward?

    1. A.Negative numbers reverse the direction — same as a negative cm in the Straight block
    2. B.It drives forward 30 cm, then stops
    3. C.It turns instead of driving
    4. D.It causes an error

    Answer Why?

  4. Find the bug in the code above.

    1. A.straight should be capitalized
    2. B.Print should be lowercase: print
    3. C.The distances should be positive
    4. D.There is no bug

    Answer Why?