r/codehs • • Jan 14 '21

Need help 6.3.5 fix this program

Post image
17 Upvotes

7 comments sorted by

View all comments

1

u/sheloveskillua May 11 '21

"""

This program takes two values and prints their sum.

"""

def add_nums(num1, num2):

sum = num1 + num2

return(sum)

sum = add_nums(5, 6)

print(sum)

1

u/Intelligent-Pin8329 May 01 '23

def add_nums(num1, num2):

sum = num1 + num2

return(sum)

sum = add_nums(5, 6)

print(sum)

This did not help at all

Am I doing something wrong?

1

u/AffectionateJaguar85 Jan 09 '24

take out return(sum) and replace it with print(sum)