Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- first_list = [1, 2, 3, 4] (is fixed, 4 elements which don't change)
- second_list - [1, 2, 3, 4] (the elements can change, but always has 4 elements)
- def compare_lists(first_list, second_list):
- if first_list == second_list:
- print("Elements 1, 2, 3 and 4 are all identical and in the same order.") #Outcome 1
- else:
- #Check each of the four numbers in both lists for outcomes 2 and 3
Advertisement
Add Comment
Please, Sign In to add comment