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

What is the output of this code?

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

class Sky:
    def __init__(self, color):
        self.color = color
    def get_color(self):
        return self.color

day_sky = Sky("blue")
print(day_sky.get_color())