Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
- b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
- list_combined = a + b
- new_list = []
- for num in list_combined:
- if num not in new_list:
- new_list.append(num)
- new_list.sort()
- for num in new_list:
- print(num)
Add Comment
Please, Sign In to add comment