Image of storm over Lane Stadium.
What is printed in the program?

the_weather_is_bad = True
if the_weather_is_bad:
print("Gosh, it looks like a rainstorm!")
print("We have to cancel the game.")
else:
print("Wow, it's a beautiful day!")
print("Let's enjoy the rest of the game!")

print("Hopefully it's sunny tomorrow!")

Choose an answer above!
  • Try the If-statement exercise to the left!
  • Pay close attention to what is actually part of the If-statement and else.
  • Anything that is not part of the If-statement or else will execute normally.