← back to unit
Easy
# basics io
Reading a Number
input() always gives you back text, even if the user types digits — "7" isn't the same as the number 7 to Python. To turn it into a real number you can do math with later, wrap it in int():
age = int(input())
print(age)
This pattern — int(input()) — is one you'll use constantly from here on.
Your turn: read a number using int(input()) and print it back.
💡 need a hint?
pyb-io-input-number.py
loading...