Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Created February 29, 2016 14:27
Show Gist options
  • Save AndyNovo/4910ddf7a681bb1cd1fe to your computer and use it in GitHub Desktop.
Save AndyNovo/4910ddf7a681bb1cd1fe to your computer and use it in GitHub Desktop.
def extractor(two_bits):
if two_bits == '01':
return '0'
if two_bits == '10':
return '1'
return ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment