## Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

### Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

# This stuff is broken

How come the perfectly working implementation of this silly little quiz that I just wrote with vim and ran at the command line keeps getting rejected by the app?

Bah!

functions.py
```# numlist = []
#add_list([1, 2, 3]) should return 6
# summarize([1, 2, 3]) should return "The sum of [1, 2, 3] is 6."
# Note: both functions will only take *one* argument each.

numlist = [1, 2, 3]
sum(numlist)

```

Hi Josh, Thanks for the reply. Actually, this isn't my code, just the half baked stuff that was in the buffer on their editor. As I stated, I have a working implementation of both functions that fulfills the problem statement, that runs just fine at the command line. I switched over to writing the file in vim and running it when the web interface kept eating my code...

```numlist = [1, 2, 3]
#   numlist = [1, 2, 3]
#   tot = 0
#   for num in numlist:
#       tot += num
#   print(tot)
print(sum(numlist))

def summarize():
print("The sum of the values in the array is {}".format(sum(numlist)))

summarize()
```

As you can see, I've written it with both the built-in function and a for loop. It appears that the game is to deduce what they are looking for.

Best S

[MOD: added ```python formatting -cf] ```# add_list([1, 2, 3]) should return 6
# summarize([1, 2, 3]) should return "The sum of [1, 2, 3] is 6."
# Note: both functions will only take *one* argument each.
total = 0
for item in list1:
total += item