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.

Python

andrew falcone
andrew falcone
8,651 Points

WHY ARE THERE NO ERROR MESSAGES?????????

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.

instances.py
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...