Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- result_list = []
- comparisons = 0
- # ---start student section---
- list2_counter = 0
- while list2_counter < len(plate_list2):
- comparisons += 1
- if plate_list2[list2_counter] in plate_list1: #the item in list 2 IS in list 1 BAD CASE
- list2_counter +=1 #check next list1 values
- else: #the list2 value is NOT in list1, unique = GOOD CASE
- result_list.append(plate_list2[list2_counter]) #add this to the comparisons list
- list2_counter += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement