All lessonsSource
馃捇 Coding 13 minLesson 2 of 50
Conditionals & logic
Make programs decide with if, else and comparisons.
What you will learn
- == compares two values; = assigns one.
- Combine conditions with and, or and not.
- else runs only when the if condition is false.
Python Tutorial for Beginners 6: Conditionals and Booleans - If, Else, and Elif Statements
Corey Schafer 路 plays in StudyAI
Watch once, then work through the practice sheet.
Practice sheets
3 printable PDFs1
Recall drill
5 questions 路 write-in answer lines
2
Apply it
4 questions 路 write-in answer lines
3
Test yourself
4 questions 路 write-in answer lines
Interactive quiz
Question 1 of 2Which operator checks equality?
