0
How to take strings as a output from the user and assign it to a variable in python.
#I guess the code will be... x=input("enter you name:- ") print(x) # correct me where I am wrong.
3 Answers
+ 4
theres nothing wrong with this, variable x holds the input and then you have printed it to console using print(x)
+ 4
#yea its fine i used this
#takes input
x=input("");
#prints input
print(x);
+ 1
you mean to say, my code is correct..??
but it's showing error, when I run it.