Invalid inputs and the ValueError

Report a typo

Create a function called check() that takes no arguments. You should read an integer input inside the function. The function checks whether a number lies between 25 and 37. If the input is an expected or border value, print it. If it is out of the specified range or it is the ValueError, print the message "Correct the error!"

Please do not type any message inside the input() statement, and do not call the function yourself.

Write a program in Python 3
def check():
...
___

Create a free account to access the full topic