Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. result_list = []
  2. comparisons = 0
  3. # ---start student section---
  4. list2_counter = 0
  5. while list2_counter < len(plate_list2):
  6. comparisons += 1
  7. if plate_list2[list2_counter] in plate_list1: #the item in list 2 IS in list 1 BAD CASE
  8. list2_counter +=1 #check next list1 values
  9. else: #the list2 value is NOT in list1, unique = GOOD CASE
  10. result_list.append(plate_list2[list2_counter]) #add this to the comparisons list
  11. list2_counter += 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement