Istvan Balogh1,505 Points
TypeError: combiner() takes 0 positional arguments but 1 was given
I'm stuck at this code challenge, anyone can point me to the right direction?
def combiner(): combined_list = "".join(filter(lambda i: isinstance(i, str), list)) summed_nr = sum(filter(lambda i: isinstance(i, (float, int)), list)) print(combined_list + str(summed_nr))
The function should return the string not print. Make that change and you'll pass. Your current function returns
None which is why you see Didn't get the expected output
Frances Angulo5,311 Points
These concepts are foreign to me (eg. the .join and even the i for i). Is there a way to complete this challenge using simpler concepts that we've learned in the course? This challenge closes out the concept of super() and class inheritance for me.