Skip to content

Instantly share code, notes, and snippets.

@thejsj
Created January 9, 2013 19:12
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 thejsj/4495941 to your computer and use it in GitHub Desktop.
Save thejsj/4495941 to your computer and use it in GitHub Desktop.
def determinePossiblities(i):
result = 1
for ii in range(i):
if(ii) == 0:
pass
elif(ii) == 1:
result = 1
else:
result = result * ii
if i > 0:
return result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment