def multiplication_of_numbers(num1, num2):
product=num1*num2
sum=num1* num2
if product<= 1000 :
return product
else:
return sum
num1=float(input("Enter the first number: "))
num2=float(input("Enter the second number: 1"))
i am not able to figure out how to print the output of the function it just says variable not defined