Skip to content

Instantly share code, notes, and snippets.

@ecylmz
Created March 21, 2011 18:55
Show Gist options
  • Save ecylmz/879973 to your computer and use it in GitHub Desktop.
Save ecylmz/879973 to your computer and use it in GitHub Desktop.
def secim(x, y, z):
secimler = {
(0, 0, 0): "a : 0\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0",
(0, 0, 1): "a : 1\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0",
(0, 1, 0): "a : 0\nb : 1\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0",
(0, 1, 1): "a : 0\nb : 0\nc : 1\nd : 0\ne : 0\nf : 0\ng : 0",
(1, 0, 0): "a : 0\nb : 0\nc : 0\nd : 1\ne : 0\nf : 0\ng : 0",
(1, 0, 1): "a : 0\nb : 0\nc : 0\nd : 0\ne : 1\nf : 0\ng : 0",
(1, 1, 0): "a : 0\nb : 0\nc : 0\nd : 0\ne : 0\nf : 1\ng : 0",
(1, 1, 1): "a : 0\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 1",
}
print secimler[x, y, z]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment