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

What is printed when this code runs?

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

def get_star_color(temperature):
    if temperature > 10000:
        return "blue"
    return "red"

star = get_star_color(12000)
print(star)