Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mapper(lst1, lst2):
- if len(lst1) == 0 or len(lst2) == 0:
- return {}
- ans = dict()
- ans[lst1[0]] = lst2[0]
- ans.update(mapper(lst1[1:], lst2[1:]))
- return ans
- print(mapper([1, 18, 118], [0, 1, 1, 1]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement