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

What is the output of this Python code?

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

def describe_sky(color="dark blue", moon=True):
    if moon:
        return color + " with a moon"
    return color + " and empty"

result = describe_sky(moon=False)
print(result)