Skip to content
dreamcode
dreamcode
Back to lesson
Practice · Nested-conditions
PredictArrangeFill in
+20 XP on finish
PREDICT · READ BEFORE YOU WRITE

What does this program print?

Read the program like the computer would, then call the output before you run anything.

is_raining = True
has_umbrella = False
if is_raining:
    if has_umbrella:
        status = 'dry'
    else:
        status = 'wet'
else:
    status = 'fine'
print(status)