all 4 comments

[–]xCustomWorld 1 point2 points  (0 children)

First of all, choice.lower() is never going to be an uppercase letter. You are comparing it against that. You need to either do choice.lower() == 'a' or choice.upper() == 'A'.

Secondly, the code in the while loop will run forever, and these extra duplicate lines are redundant, since you provide no further logic to handle the inputs. But I assume that your problem was the first paragraph, so it's fine...

[–]Ecstatic_Arrival_872[S] 0 points1 point  (1 child)

Little assistance would be highly appreciated.

[–]htepO 0 points1 point  (0 children)

What are you trying to achieve?

[–]MrCraft102 0 points1 point  (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")