Welcome to the Treehouse Community
Looking to learn something new?
Zach Dayton1,580 Points
What am I missing?
Help! I'm having a tough time understanding why this works in workspaces but is not accepted for the answer.
def combiner(sing): print(sing) count = 0.0 fin = "" for i in sing: if isinstance(i, (int, float)): count += float(i) elif type(i) == str: fin+=i count = str(count) return str(fin+count)
Perhaps try to replace the type() call with another isinstance() call...? I'm having trouble with getting a working function to pass as well (works in command line, code challenge isn't having it...). But maybe that would inch you closer since the challenge revolves around isinstance()?