Skip to content
dreamcode
dreamcode
Lesson
Practice · Variable scope
  1. Predict
  2. Arrange
  3. Fill in
+20 XP on finish
PREDICT · READ BEFORE YOU WRITE

What is printed when this Python code is executed?

Trace the program the way the computer would, then make your call before running anything.

cloud_count = 10

def add_clouds():
    cloud_count = 5
    return cloud_count

add_clouds()
print(cloud_count)