I've been trying to make a line management program, but something isn't working properly and only half of it works.
I've tried to move things around and change if statements to else statements. but still only half if it works. what's meant to happen is, the user type in a word, if that word = Next, it removes the first person in that line. if the user types any other word but Next, it adds it to the end of the list.
Example below:
# This is just a line manager :D
print("")
Line = \["Bob" , "Steve" , "Michael"\]
print(Line)
print("")
#infinit loop
I = 0
while I < 1:
print("Type the name of the person you want to add to the queue, or if you wanna remove the first person in the line, type 'Next'")
print("")
New = str(input())
if New != "Next" or "next":
Line.append(New)
print(Line)
continue
if New =="Next":
Line.remove(Line\[0\])
print(Line)