Skip to content

Instantly share code, notes, and snippets.

@kyl191
Created May 12, 2012 17:22
Show Gist options
  • Save kyl191/2667754 to your computer and use it in GitHub Desktop.
Save kyl191/2667754 to your computer and use it in GitHub Desktop.
Dropquest 2012 Chapter 1 Counting
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