Skip to content

Instantly share code, notes, and snippets.

@tecoholic
Created July 25, 2015 03:00
Show Gist options
  • Select an option

  • Save tecoholic/b81780f8be65035c70ea to your computer and use it in GitHub Desktop.

Select an option

Save tecoholic/b81780f8be65035c70ea to your computer and use it in GitHub Desktop.
delivery_id_confirmations = [1,2,3,4,5,6,7,8,9,10,
1,2,3,5,6,7,8,9,10] # 4 missing
def find_unique_id(id_array):
for num in id_array:
if id_array.count(num) == 1:
print "Missing Delivery Man ID: {0}".format(num)
if __name__ == '__main__':
find_unique_id(delivery_id_confirmations)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment