I want my program to append a user input to a list until a special input is given.
I have already tried it with a while loop but it didn't work that way.
in2 = []
while in1 != "END" :
in1 = input("Enter: ")
in2.append(in1)
I want my program to append a user input to a list until a special input is given.
I have already tried it with a while loop but it didn't work that way.
in2 = []
while in1 != "END" :
in1 = input("Enter: ")
in2.append(in1)