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 trialgen horiko
Front End Web Development Techdegree Student 171 Pointsthis is driving me crazy :[
im 3000% sure that the result is appledog13.2 why the error
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
KRIS NIKOLAISEN
54,971 PointsAccording to the instructions your function should "Return a single string" not print.
gen horiko
Front End Web Development Techdegree Student 171 Pointsgen horiko
Front End Web Development Techdegree Student 171 Pointshhhhhhh im laughing at my self right now how didnt i pay attention to that it literally says return XD