#shorts
In this quick video, the concept of if else is demonstrated. This is intended for those who are new to programming or Python.
Else statements can optionally follow an if statement. Else statements run the code within them when the if statement they go with is not true.They use a format similar to:
if condition:
run code if condition is true
else:
run code if condition is false