Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Evan Huddleson
12,623 PointsFunctions Challenge 2 of 2
I can't seem to pass and I have no idea what the problem is. Your help is much appreciated, thanks!
my_list = [1, 2, 3]
def add_list(my_list): total = 0 for num in my_list: total = total + num return total
def summarize(my_list): y = (my_list).str() x = add_list(my_list) return("The sum of {} is {}.".format(y,x))
return summarize(my_list)
1 Answer
Thomas Kirk
5,246 PointsHi Evan,
Your line y = (my_list).str() just needs to be y = str(my_list).
Also you don't need to return the summarize function itself.