Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def split(lst):
- if len(lst) == 0:
- return [], []
- lst1, lst2 = split(lst[2:])
- lst1.insert(0, lst[0])
- if len(lst) >= 2:
- lst2.insert(0, lst[1])
- return lst1, lst2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement