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

this is driving me crazy :[

im 3000% sure that the result is appledog13.2 why the error

instances.py
def combiner(listi):
    l1 = []
    l2 = []
    for item in listi:
        if isinstance(item,( int, float)) == True:
            l1.append(item)
        elif isinstance(item,( int, float)) == False:
            l2.append(item)
    print(''.join(l2)+str(sum(l1)))
combiner(["apple", 5.2, "dog", 8])

1 Answer

According to the instructions your function should "Return a single string" not print.

hhhhhhh im laughing at my self right now how didnt i pay attention to that it literally says return XD