-
Notifications
You must be signed in to change notification settings - Fork 1
/
listing.py
26 lines (22 loc) · 810 Bytes
/
listing.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from typing import List
class listing(object):
def __init__(self,
zip: str,
propertyAmenities: List[str],
unitAmenities: List[str],
numberBeds: int,
rent: float,
sqft: int):
self.zip = zip
self.propertyAmenities = propertyAmenities
self.unitAmenities = unitAmenities
self.numberBeds = numberBeds
self.rent = rent
self.sqft = sqft
def __str__(self):
return f'listing(zip: {self.zip}, ' \
f'propertyAmenities: {self.propertyAmenities}, ' \
f'unitAmenities: {self.unitAmenities}, ' \
f'numberBeds: {self.numberBeds}, ' \
f'rent: {self.rent}, ' \
f'sqft: {self.sqft})'