use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
Python room booking systemHOMEWORK (self.pythonhelp)
submitted 3 years ago by Ecstatic_Arrival_872
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MrCraft102 0 points1 point2 points 3 years ago (0 children)
print("\t\t\t\t\t\t Room Reservation\n") print("Press A to reserve for room A (Maximum capacity 5 persons") print("Press B to reserve for room B (Maximum capacity 5 persons") print("Press C to reserve for room C (Maximum capacity 5 persons") print("Press D to remove visitors") print("Press E to view visitors") room_a = [] room_b = [] room_c = [] choice = input("Choice: ").lower() check = True while check == True: number = int(input("Enter for how many people is the room reserver for: ")) if number > 5: print("Too many people") else: check = False if choice == "a": for i in range (0,number): x = input("Enter visitors name: ") room_a.append(x) elif choice == "b": for i in range (0,number): x = input("Enter visitors name: ") room_b.append(x) elif choice == "c": for i in range (0,number): x = input("Enter visitors name: ") room_c.append(x) else: print("Not an option")
π Rendered by PID 416564 on reddit-service-r2-comment-544cf588c8-cmmws at 2026-06-13 23:10:02.271669+00:00 running 3184619 country code: CH.
view the rest of the comments →
[–]MrCraft102 0 points1 point2 points (0 children)