Guest User

Untitled

a guest
Dec 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  2. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  3.  
  4. list_combined = a + b
  5. new_list = []
  6.  
  7.  
  8. for num in list_combined:
  9. if num not in new_list:
  10. new_list.append(num)
  11. new_list.sort()
  12.  
  13.  
  14. for num in new_list:
  15. print(num)
Add Comment
Please, Sign In to add comment