Fly me to the moon

Report a typo

Here is a class Planet and a few instances of that class:

class Planet:
    all_moons = []

    def __init__(self, name):
        self.name = name
        self.moons = []


earth = Planet("Earth")
jupiter = Planet("Jupiter")

earth.moons.append("Moon")
earth.all_moons.append("Moon")

jupiter.moons.append("Io")
jupiter.moons.append("Europa")
jupiter.all_moons.append("Io")

Match the attributes and their values. Take into account that one option is extra.

Match the items from left and right columns
Planet.all_moons
earth.moons
jupiter.moons
["Moon"]
["Io", "Europa"]
["Moon", "Io", "Europa"]
["Moon", "Io"]
___

Create a free account to access the full topic