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

What is printed when this code runs?

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

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

star = get_star_color(12000)
print(star)