Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # flatten_zipped_lists.py
- lista = [0, 2, 4, 6, 8]
- listb = [1, 3, 5, 7, 9]
- merged_list = list(sum(zip(lista, listb), ()))
- print(merged_list)
- # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement