โ Back to Exercises
๐
Fixing Errors โข Exercise 99 of 112
Safe Number Input
๐ฏ Your Mission
Ask the user for their age with input(). Use try and except ValueError so that if they type something that is not a number, the program prints "Please type a number!" instead of crashing. If it is a number, print their age next year.
๐ main.pyTab = 4 spaces โข Ctrl+Enter = Run
โถ Output
Press โถ Run to see what your code does!
