Skip to content

Instantly share code, notes, and snippets.

@saxbophone
Created March 25, 2015 11:14
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 saxbophone/49342d46a411cd353b8c to your computer and use it in GitHub Desktop.
Save saxbophone/49342d46a411cd353b8c to your computer and use it in GitHub Desktop.
Python Mindfuck
def thresh(max=5000):
"""
Find the maximmum threshold of the paradoxical (i is 1000 = False) Phenomenon.
"""
p = 0
n = 0
n_break = False
p_break = False
for i in xrange(max):
if p is i:
p += 1
else:
p_break = True
if n is (i * -1):
n -= 1
else:
n_break = True
if p_break and n_break:
print('Max = {0}, Min = {1}'.format(p, n))
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment