Skip to content

Instantly share code, notes, and snippets.

@NeilHanlon
Created October 26, 2017 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NeilHanlon/b76c8a5d8ecfb36f04a3e1906d56d03a to your computer and use it in GitHub Desktop.
Save NeilHanlon/b76c8a5d8ecfb36f04a3e1906d56d03a to your computer and use it in GitHub Desktop.
def isOdd(value):
numbers = list(range(0, 2147483647))
even = True
for num in numbers:
if even:
numbers.remove(num)
even = not even
if value in numbers:
# double check
if not isEven(value):
return True
else:
return False
else:
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment