I've been working on a sleep calculator that needs a validation error message. The code that I need to validate is:
hourspernight = int(input("How many hours do you sleep in a day?")
hoursperweek = hourspernight * 7
input("You Sleep for",hoursperweek,"hours every week!")
I need to add validation so that, if the user inputs a character that is not an integer, it shows an error message asking for an integer.