0
How to do for asking the user to enter a variable and print it in PYTHON ?
3 Antworten
0
xyz = input("Please input something:")
print(xyz)
+ 1
Something to consider.. input in python is by default a string. So if the input is a number, it will be "5" and not 5 ..
5 is not equal to "5" ... If you want to do take in a number, you can wrap the input.
xyz = int(input("Please enter number:")
print(xyz)
0
Thank you very much