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

What is printed when this Python code is executed?

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

cloud_count = 10

def add_clouds():
    cloud_count = 5
    return cloud_count

add_clouds()
print(cloud_count)