Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def common_list(list1, list2):
- result = []
- for number in a_set:
- for number2 in b_set:
- if number == number2 :
- list3.append(number)
- return list3
- 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]
- print(common_list(a,b))
Add Comment
Please, Sign In to add comment