The housing problem

Report a typo

The code below defines the class House and an object of that class. However, the code is somewhat incorrect. Fix the mistakes but do NOT change variable or attribute names (they are necessary for checking).

Pay attention to the keyword and class object creation (check how objects of similar classes have been defined in the theory).
Write a program in Python 3
# definition of the class
Class House():
construction = "building"
elevator = True

# object of the class House
new_house = House("building")
___

Create a free account to access the full topic