Guest User

Untitled

a guest
Jun 18th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. class House():
  2.  
  3. def __init__(self,address,price,bedrooms,connectivity,gardens,parking):
  4. self.address = address
  5. self.price = price
  6. self.bedrooms = bedrooms
  7. self.connectivity = connectivity
  8. self.gardens = gardens
  9. self.parking = parking
  10.  
  11. def specs(self):
  12.  
  13. print('address:',self.address)
  14. print('price:',self.price)
  15. print('bedrooms:',self.bedrooms)
  16. print('connectivity:',self.connectivity)
  17. print('gardens:',self.gardens)
  18. print('parking:',self.parking)
  19. print('foundation: solid slab')
  20. print('siding: vinyl')
  21. print('color: red')
  22. print('roof_type: metal')
  23.  
  24. home = House('123 coding way',475000.00,4,True,'yes','attached')
  25.  
  26. home.specs()
Add Comment
Please, Sign In to add comment