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!

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


andrew falcone
andrew falcone
8,651 Points


I am 98% that this code is correct (I think I may be missing an edge case), but am very frustrated that I am not receiving any sort of error message ("Bummer: Try again!"). This is absolutely ridiculous and completely unhelpful. The last time I was stuck, the error was the indentation because the treehouse workspace used a different number of spaces for indentation.

def combiner(a_list):
    numbers = 0
    strings = ""
    for x in a_list:
        if isinstance(x, float) or isinstance(x, int):
            numbers += x
        elif isinstance(x, str):
            strings += x
    return "{}{}".format(strings, numbers)

1 Answer

I copy/pasted your code and it passed the challenge.

andrew falcone
andrew falcone
8,651 Points

Interesting, I just went back and likewise pasted the code and it passed. It definitely was not passing earlier...