โ† Back to Exercises
๐Ÿž

Fixing Errors โ€ข Exercise 99 of 112

Safe Number Input

Mediumโญ 30 XP๐Ÿ† Your XP: 0

๐ŸŽฏ 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!