+ 1
I want to get the input from the user and i want to store it in a list.I tried like this#list[]=input(""). It shows error.help m
Beginner
3 Respostas
+ 8
There are some ways,
if you want to index character by character,
print(list(input()))
or,
print([input()])
but, if your input is a sentence and you want each word to be indexed not character then,
print(input().split())
+ 1
Tq. I got it
+ 1
tq