# basics conditionals

Combining Conditions with or

Use or when at least one condition needs to be true:

if has_umbrella == 1 or has_raincoat == 1:
    print("Staying dry!")
else:
    print("Getting wet!")

Your turn: read has_umbrella and has_raincoat (1 for yes, 0 for no). Print Staying dry! if either is 1 — otherwise print Getting wet!

💡 need a hint?

pyb-cond-or.py🔒 given lines are locked — write your code in between
loading...