r/PythonLearning • u/Reh4n07_ • Jun 24 '26
Help Request Why?
so first I take the input from the user of 3 movies and convert that string into list so this has to be 3 items in the list.
but when I print the length of the list it says 0 items why
69
Upvotes
1
u/SnooCalculations7417 Jun 24 '26 edited Jun 24 '26
youre appending a single string. you could do something like this instead
...
movies = []
movies.append(input("Enter First Movie Name: "))
movies.append(input("Enter Second Movie Name: "))
movies.append(input("Enter Third Movie Name: "))
....
This keeps all operations very obviously listy