0
How do you input other data types like integers?
2 Réponses
+ 1
for string
input_user = input("enter string")
0
The value of input is always returned as a string. Just change it's format before using in computations e.g.
x = input('new value: ')
z = 3 + int(x)