Input not returning a number
- string
- input
- number
For example, it is necessary to manually convert to a number (using int
or float
for example) when reading in an input.
# Python 3.x
x = int(input("Please enter your id number: "))
Input not returning a number
For example, it is necessary to manually convert to a number (using int
or float
for example) when reading in an input.
# Python 3.x
x = int(input("Please enter your id number: "))