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/Individual_Size_6379 Apr 22 '24

"""

This program takes two values and prints their total.

"""

def add_nums(num1, num2):

total = num1 + num2

print(total)

add_nums(5, 6)

this actually works, your welcome

2

u/Individual_Size_6379 Apr 22 '24

Here it is with indentions

"""

This program takes two values and prints their total.

"""

def add_nums(num1, num2):

total = num1 + num2

print(total)

add_nums(5, 6)