Python programming : i need to this function to print the result after taking the input (what am i doing wrong) the quotes are because of errors

Viewed 19
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

0 Answers
Related