The following program should take two values and print the sum. Find and correct the error so the function can perform this operation correctly.
Fix the error
def add_nums():
num1 = 5
num2 = 6
total = num1 + num2
add_nums()
print total
Answers
Answered by
1
Answer:
def add_nums():
num1 = 5
num2 = 6
return num1 + num2
total=add_nums()
print(total)
Explanation:
Similar questions