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.

Prateek Sharan Lall
1,778 PointsWhat's lacking in my code, any help?
I run my code in the workspace and get the exact result. Please help me to know what did I miss. Thanks a lot!
def combiner(my_list):
result_a = ""
result_n = 0
for item in my_list:
if isinstance(item,str):
result_a = result_a + item
if isinstance(item,float):
result_n = result_n + item
if isinstance(item,int):
result_n = result_n + item
result_n = str(result_n)
print(result_a + result_n)
2 Answers

KRIS NIKOLAISEN
54,752 PointsThe instructions are to return a single string not print

Prateek Sharan Lall
1,778 PointsThank you Kris. How dumb was I to miss such a thing lol... I wouldn't have noticed it for sure!