+ 3
How to take input from the user, in a list??
2 Answers
+ 5
You could use the "list.append()" function. Maybe something like this:
list1 = []
while True:
user_input = input('Enter input: ')
list1.append(user_input)
print(list1)
Each time the user inputs something it adds it to the list and prints the list.
+ 2
Thank you for your help. It worked