Course Content
Lesson 1: Introduction to Python
0/2
Lesson 2: Start making decisions in your code
0/2
Lesson 3: Expanding if statements using elif(else if)
0/1
Lesson 4: While Loops
0/2
Marie Codes Course – Python fundamentals 101 –

Python, we use if, elif, and else to make decisions in our code. The if checks a condition first. If it’s true, that block of code runs. If not, Python checks the elif (which means “else if”). You can have more than one elif. If none of the conditions are true, the else block runs. This helps the program choose what to do based on different situations. Remember: indentation matters in Python!

0% Complete