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

What is printed when this program is run?

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

try:
    stars = ["sirius", "vega"]
    selected = stars[2]
except IndexError:
    selected = "unknown"
finally:
    print("Done")
print(selected)