Skip to content

Instantly share code, notes, and snippets.

View lurym's full-sized avatar
🏠
Working from home

Łukasz lurym

🏠
Working from home
View GitHub Profile

Keybase proof

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:

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