Created
March 21, 2011 01:42
-
-
Save nuryslyrt/878892 to your computer and use it in GitHub Desktop.
4.foy odevi yoL secici fonksiyon
This file contains hidden or 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
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
def yoL_secici(x, y, z): | |
if (x, y, z) == (0, 0, 0): | |
print "a : 0\nb : 0\nc : 0\d : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (0, 0, 1): | |
print "a : 1\nb : 0\nc : 0\nd : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (0, 1, 0): | |
print "a : 0\nb : 1\nc : 0\d : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (0, 1, 1): | |
print "a : 0\nb : 0\nc : 1\d : 0\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (1, 0, 0): | |
print "a : 0\nb : 0\nc : 0\d : 1\ne : 0\nf : 0\ng : 0" | |
elif (x, y, z) == (1, 0, 1): | |
print "a : 0\nb : 0\nc : 0\d : 0\ne : 1\nf : 0\ng : 0" | |
elif (x, y, z) == (1, 1, 0): | |
print "a : 0\nb : 0\nc : 0\d : 0\ne : 0\nf : 1\ng : 0" | |
elif (x, y, z) == (1, 1, 1): | |
print "a : 0\nb : 0\nc : 0\d : 0\ne : 0\nf : 0\ng : 1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment