Created
May 12, 2012 17:22
-
-
Save kyl191/2667754 to your computer and use it in GitHub Desktop.
Dropquest 2012 Chapter 1 Counting
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
for x in [3,4,6]: | |
if x == 3: | |
y = 8 | |
z = 4 | |
if x == 4: | |
y = 6 | |
z = 3 | |
if x == 6: | |
y = 4 | |
z = 2 | |
for a in range(10): | |
for b in range(10): | |
if (x+y+z+a+b) == 26 and ((z+b) == (x+a)): | |
print str(x), str(y),str(a),str(z),str(b) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment