Skip to content

Instantly share code, notes, and snippets.

@jakeyr
Created October 22, 2017 22:38
Show Gist options
  • Save jakeyr/194717b3134e4925b48db068f432b24f to your computer and use it in GitHub Desktop.
Save jakeyr/194717b3134e4925b48db068f432b24f to your computer and use it in GitHub Desktop.
combo = collections.deque([1,2,3])
tumbler = collections.deque([0]*len(combo),len(combo))
def incoming_temp(temperature):
tumbler.append(temperature)
if (tumbler == combo):
disarm()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment