•4 years ago
shared a Post
I Need To Ask The Player Age But He Only can put numbers.
CassioTDS Guys! I Figured It Out! A Coder Teaches Lessons To My Dad Andash15khng was right just that it is exept: Not Exept ValueError: (actually idk)4 years ago
ash15khng You could use age = int(input("what is your age?")) This stores the input as a variable age. If the player types in a non number, there will be an error.4 years ago