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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!