I'm trying to create a program that makes a list with what the user type on the input, but there is a problem, the code identifies the elements from the list like a variable (i think so), it shows the next error:
>NameError: name '(word)' is not defined
¿How i fix this?
[code]
lst = []
number = int(input("How many words you will put?: "))
for i in range (number):
x=(input("Enter words: "))
lst.inster(i,x)
print(lst)
[/code]
Use pastebin you fuck
Dumb question, looks like you just have a stupid typo. In any case, here's a thing that works
https://pastebin.com/1KHrX69G
lst.inster is an obvious typo but I don't see why you'd get that NameError.
>>362974
Edgy
>>362937
Fucking pajeet