Is it possible to make error handling functions so that I don't have to make error handling where the inputs are?
For example:
def error_handler(a,b,c):
while True:
try:
a, b, c
except ValueError:
print("wrong")
def inputs():
a = input("Write something")
b = input("Write something")
c = input("Write something")
How can I make that the function "inputs" understands that I have been doing a error_handling function without repeating the process?