Introduction
for
Dishes?
Dice
Fortune teller
Turtle
Draw it!
Harry Potter
Sing a song!
Story
Rock, paper, scissors
Calculator
Restaurant
debugging
Puzzle
Quiz

You're doing great! In the previous levels we still faced a small problem. You have learned to repeat lines, but what if you'd want to slightly change the line. For example if you want to sing the song 'if you're happy and you know it'. It would look like this:

If you'd also want the next verse 'stomp your feet', and the next one, and the next one, you'd have to change the code completely. In this level you'll learn the for command, which allows you to make a list of actions and repeat the code with another action each time! Please take a look!

repeat 2 times
    print 'if youre happy and you know it clap your hands'
print 'if youre happy and you know it and you really want to show it'
print 'if youre happy and you know it clap your hands'
Latest update: 2024 Apr 20(703b8d)