Module 1 · Learning to Drive
Lesson 8 · Hello, Python — Knowledge ChecksAnswer key
Which line is written correctly?
Lowercase print, parentheses around the call, and quotes around the text. The others break one rule each.
What's wrong with this line? for i in range(4)
Lines that start a block (for, if, def) must end with a colon.
Why does drivetrain.straight(-30) drive the robot backward?
A negative distance means backward, exactly like typing a negative cm value into the block.
Find the bug in the code above.
Python is case-sensitive. Print with a capital P isn't the same as the built-in print.