School Room Finder
Edit in new window
bubble
play_circle
Run
stop_circle
Stop
cancel
Clear
text_increase
text_decrease
light_mode
routine
dark_mode
restart_alt
Reset
download_for_offline
Download
help
Help
main.py
+
#School Room Finder - www.101computing.net/school-room-finder print("+-------------------------+") print("| |") print("| Room Finder v1.0 |") print("| |") print("+-------------------------+") print() code = input("Enter a room code:").title() if len(code)<=4: letter = code[0] print("This room is located in the " + letter + " block.") number = int(code[1:]) if number<100: print("It is on the ground floor.") elif number>=100 and number<200: print("It is on the first floor.") elif number>=200: print("It is on the second floor.") else: rooms = {"Main Reception":"at the main entrance of the A block", "Staffroom":"on the top floor of the B block", "Sports Hall":"on the side of the B Block", "Dance Studio":"on the ground floor in the A Block", "Activity Studio":"on the ground floor in the A Block" } if code in rooms: print("This room is located " + rooms[code]) else: print("We cannot locate this room! Are you sure this is a valid room?")
task_alt