Created
August 5, 2012 06:01
-
-
Save rukku/3262132 to your computer and use it in GitHub Desktop.
Math question from kenan
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
# x < 8 | |
# x - y > 2 | |
# what is max x + y | |
values = [] | |
for x in range(100): | |
for y in range(100): | |
if x < 8 and x - y > 2: | |
print x + y | |
values.append(x+y) | |
print "Maximum value is", max(values) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment