I have this code::
name_list=[]
name1=print(input("what is your name: "))
name_list.append(name1)
print(name_list)
it returns
Jon
[NONE]
If i input a name jon.
Why does it not append to list please?
I have this code::
name_list=[]
name1=print(input("what is your name: "))
name_list.append(name1)
print(name_list)
it returns
Jon
[NONE]
If i input a name jon.
Why does it not append to list please?
get rid of "print(input(..."name1=input("what is your name: ")
Cheers for that... Im such an idiot!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.