Created
March 25, 2015 11:14
-
-
Save saxbophone/49342d46a411cd353b8c to your computer and use it in GitHub Desktop.
Python Mindfuck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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