Loading Video

Loading ...

Write Code While Watching This Lesson

Login or create an account and code along whilst you watch this lesson.

if, elif, and else

We have learned about the if statement already but there are some powerful extensions that help us create programs that make more complex decisions. We might want to check if a person has washed the dishes and if so say thank you, otherwise check if they are currently washing the dishes and say keep going, otherwise we might ask them to wash the dishes. We can implement this kind of logic with if, elif, and else statements.


Tutorial Lessons

Animating Shapes

Animating Shapes
1 Introduction to Variables 11:32
2 Animation the Hard Way 12:12
3 Animation Loop 9:36
4 Respawning with if Statements 7:21
5 Sunrise and Sunset 22:25
6 mouseX and mouseY Variables 5:38
7 if, elif, and else 10:18
8 Random Screensaver 12:39
9 Bouncing Ball Animation 19:31
10 Two Bouncing Balls 9:43

No comments yet!

Notify me of updates