how can I use a for loop in OOP to display an error message when a user inputs something other than an integer for variables a & b, and loop it until the user inputs an integer? This is in the context of operator overloading in Python
class Number:
def __init__(self, x):
self.x = x
def __mul__(self, other):
x = self.x + other.x
return x
a = Number(int(input("Enter a number: ")))
b = Number(int(input("Enter another number: ")))
print("\nThose two numbers added together are",a*b)