#shorts
In this quick video, Python if statements are demonstrated. This is intended for those who are new to programming or Python.
If statements are a useful tool in controlling logical decisions in your program. If statements run the code within them if their condition is true. They use a format similar to:
if condition:
run code if condition is true
Note the colon after the condition, and the indent after the if statement. Anything within the indented block immediately after the if statement is considered in scope of the statements condition.