cool picture

if else statements

if else statements are used to make decisions in a program. In Python, you can use an if statement to check a condition, and if the statement is true then you execute what you want to do. If the statement is false, you can use an else statement to execute a different block of code. make sure to always add a colon at the end, also make sure to add 2 equal signs (==) for comparison.

key points

-if checks if the condition is true
-use (==) for when you want to compare
-always add a colon afterwards: