How to make Python to check is variable a number or letter?
I'm a Python beginner, and I need help figuring out how to check whether user input is a number or not. In my code, I want to allow the user to input their age, and if they input a valid number, the program should continue. However, if they input something that isn't a number, I want the program to notify them and ask them to try again. Here's a part of my code:
str.isdigit()