Skip to content

Instantly share code, notes, and snippets.

@raa0121
Created November 15, 2014 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raa0121/d2dfb71644711ffd1a97 to your computer and use it in GitHub Desktop.
Save raa0121/d2dfb71644711ffd1a97 to your computer and use it in GitHub Desktop.
a = True
b = True
c = False
if(a):
a += 1
if(b):
b += 1
if(c):
c += 1
if ( a > 0 && b > 0 ):
if ( c > 0 ):
abc += 1
a -= 1
b -= 1
c -= 1
else:
ab += 1
a -= 1
b -= 1
elif ( a > 0 && c > 0 ):
ac += 1
a -= 1
c -= 1
else
bc += 1
b -= 1
c -= 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment