Decision making with rain and umbrella status

Report a typo

Imagine it's raining outside, and you're trying to decide whether to stay home. Your decision depends on if you have an umbrella. If you have one, you can go outside despite the rain.

You want to create a Python program to help make this decision. The program uses two variables: is_raining and have_umbrella, and it prints a message that includes the decision as a boolean value.

Fill in the blanks in the code with appropriate values to print a message that shows if you should stay home based on these conditions.

Fill in the gaps with the relevant elements
isRaining = 
haveUmbrella = 
shouldStayHome = isRaining   haveUmbrella
message = "Should I stay home? " + str(shouldStayHome)
print(message)
TrueifnotANDFalseandor

Create a free account to access the full topic