You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes we might want to extend our decision making when we create if statements. Else if could help us to create more conditions to decide what lines of code to execute
#You can change both those values to test the results of this programis_snowing=Trueis_raining=Trueifis_snowing:
print("It's extremely cold outside")
elifis_raining:
print("It's not so cold outside")
else:
print("It's not cold outside")
#If, Elif and Else are associated together.#It is important to remember that Python will always look to enter one statement in one nested If statement.