class BookFormat(Enum): HARDCOVER, PAPERBACK, AUDIO_BOOK, EBOOK, NEWSPAPER, MAGAZINE, JOURNAL = 1, 2, 3, 4, 5, 6, 7 class BookStatus(Enum): AVAILABLE, RESERVED, LOANED, LOST = 1, 2, 3, 4 class ReservationStatus(Enum): WAITING, PENDING, CANCELED, NONE = 1, 2, 3, 4 class AccountStatus(Enum): ACTIVE, CLOSED, CANCELED, BLACKLISTED, NONE = 1, 2, 3, 4, 5 class Address: def __init__(self, street, city, state, zip_code, country): self.__street_address = street self.__city = city self.__state = state self.__zip_code = zip_code self.__country = country class Person(ABC): def __init__(self, name, address, email, phone): self.__name = name self.__address = address self.__email = email self.__phone = phone class Constants: self.MAX_BOOKS_ISSUED_TO_A_USER = 5 self.MAX_LENDING_DAYS = 10
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter