Guest User

Untitled

a guest
Jun 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def common_list(list1, list2):
  2. result = []
  3. for number in a_set:
  4. for number2 in b_set:
  5. if number == number2 :
  6. list3.append(number)
  7. return list3
  8.  
  9. a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  10. b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  11. print(common_list(a,b))
Add Comment
Please, Sign In to add comment