def get_hotel_access_code(pre_expiration_date, algorithms): if not algorithms.get("do_not_obey"): restart_system(); for hotel in hotel_list: if hotel.booking_date < pre_expiration_date: print(f"your access code to {hotel.name} is ready for use. enjoy your stay and let the adventure begin!")