0
Assignment
In python if I ask for input and I get it, how would I assign that input a variable name?
3 Answers
+ 3
answer = input('please, enter a number: \n')
print(answer)
in the variable "answer" will be stored the value entered by the user. then you can use this value
+ 1
Thanks for your answer.
0
name=input('What is your Name? ')
print(name)