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

Python Python Basics (Retired) Putting the "Fun" Back in "Function" Functions

fun back in functions functions challenge 2nd task

I need help for the second task in the challenge thank you

Hi lucasmangold,

Can you post what you have so far so we can see what you might be doing wrong?

1 Answer

Stephen Bone
Stephen Bone
12,359 Points

Hi Lucas

OK so as it states you need to return a string using string formatting to drop in the correct values in place of X and Y.

def summarize(new_list):
  return "The sum of {} is {}.".format(new_list, add_list(new_list))

Ken discusses the usage of this in more detail here: http://teamtreehouse.com/library/python-basics/ins-outs/string-formatting

Hope it helps!