if, elif, else Statements
- if Statements in Python allows us to tell the computer to perform alternative actions based on a certain set of results. like "Hey if this case happens, perform some action"
- We can then expand this further with elif and else statements, which allow us to tell the computer: "Hey if this case happens, perform some action. Else, if another case happens(elif), perform some other action. Else, if none of the above cases happened, perform this(else) action."
if case1:
perform action1
elif case2:
perform action2
else:
perform action3