def run(): logging.basicConfig(format='%(threadName)s, %(asctime)s, %(message)s', datefmt='%M:%S', level=logging.DEBUG) num_of_stalls = int(input("Enter number of stalls ")) num_of_users = int(input("Enter number of users ")) bathroom = Bathroom(num_of_stalls) Main.enter_users_to_bathroom(num_of_users, bathroom)
def __init__(self): bathroom = Bathroom() bedroom = Kitchen() pantry = Pantry() self.rooms = [bathroom, bedroom, pantry]