Light Mode
Dark Mode
my code works but in wont pass the test
def flat_list(n,l=[]):
for i in n:
    l.append(i) if not type(i)==list else l+flat_list(i)
return l

my code works but in wont pass the test

Attachment
  • code_review
  • python
Created: Jan. 9, 2020, 6:43 p.m.
Updated: Jan. 9, 2020, 6:45 p.m.
0
5
User avatar
buktt