New coding words
looprepeatforrangeindent
Aim: Make Python repeat commands without typing them again and again.
looprepeatforrangeindentUse a for loop to repeat two dance commands four times.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to try this program.
Make Python perform a robot dance for three rounds.
Tab indents. Esc then Tab leaves the editor. Ctrl/⌘ + Enter runs your code.
Select Run my code to try this program.
Complete these activities in the mini-project editor above. After each change, select Run my code to check your program’s output or drawing.
Select Download my work and save the file as week_4_robot_dance.py. The .py ending tells us that the file contains Python code. Keep this file as a copy of your finished program.

range(4)Your answers are checked in this browser and are not submitted.
Finished Week 4?
This progress is saved only in this browser.