Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class House():
- def __init__(self,address,price,bedrooms,connectivity,gardens,parking):
- self.address = address
- self.price = price
- self.bedrooms = bedrooms
- self.connectivity = connectivity
- self.gardens = gardens
- self.parking = parking
- def specs(self):
- print('address:',self.address)
- print('price:',self.price)
- print('bedrooms:',self.bedrooms)
- print('connectivity:',self.connectivity)
- print('gardens:',self.gardens)
- print('parking:',self.parking)
- print('foundation: solid slab')
- print('siding: vinyl')
- print('color: red')
- print('roof_type: metal')
- home = House('123 coding way',475000.00,4,True,'yes','attached')
- home.specs()
Add Comment
Please, Sign In to add comment