Given two integer numbers, return their product only if the product is equal to or less than 1000, else return their sum.
def multiplication_or_sum(num1, num2):
product = num1 * num2
if product < = 1000:
return product
else:
return num1 + num2
result = multiplication_or_sum(20,30)
print("The result is = ", result)
result = multiplication_or_sum(50,10)
print("The result is = ", result)
my output
The result is = 600
The result is = 500
expected output
The result is = 600
The result is = 60
Please help me in finding the error.