Question: (python)Question 5: Part A (3pts - manually graded) Let's make a new class called House that where you have to provide the following attributes in
(python)Question 5: Part A (3pts - manually graded)
Let's make a new class called House that where you have to provide the following attributes in the __init__ function:
- address,
- style, (see this list for inspiration)
- yearBuilt
- numUnits (are there rental units in the property?)
- numFloors (how many floors does it have?)
You should also include the attributes and provide methods to change the values of (or just check!)
- doorsLocked
- windowsClosed
class House: def __init__(self, address, style, yearBuilt, numUnits, numFloors): # YOUR CODE HERE raise NotImplementedError()
myHouse = House("42 Mulberry Lane", "Row House", 1892, 3, 4)
myHouse.lockDoors()
Part B (1pt - manually graded)
Add any attributes or methods that you want!
# YOUR CODE HERE raise NotImplementedError()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
