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
but I can't figure out the error.
![Multiplication or sum of two numbers [closed]](https://file.115kc.com/storage/eg/image178.jpg)