Quiz: Classes

Expand login sectionLog in
Track your progress

Progress: Problem 1 of 10

Select the best class definition for an alien:

class alien.name = ""
class alien.height = 7.2
class alien.weight = 156
class alien(
    def __init__(self):
        self.name = ""
        self.height = 7.2
        self.weight = 156
)
class Alien():
    def __init__(self):
        self.name = ""
        self.height = 7.2
        self.weight = 156
class alien():
    def __init__(self):
        self.name = ""
        self.height = 7.2
        self.weight = 156
Check Answer