I hereby claim:
- I am lurym on github.
- I am lukasz_fh (https://keybase.io/lukasz_fh) on keybase.
- I have a public key ASCqxW8EbILsfc6btSs4bPl5VqgInepLT6w8OwLG6hw10wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
def flatten(arg): | |
if isinstance(arg, list): | |
if len(arg) == 0: | |
return arg | |
else: | |
return flatten(arg[0]) + flatten(arg[1:]) | |
else: | |
return [arg] | |
import unittest |