Skip to content

Instantly share code, notes, and snippets.

@bgnori
Created July 5, 2013 05:19
Show Gist options
  • Save bgnori/5932047 to your computer and use it in GitHub Desktop.
Save bgnori/5932047 to your computer and use it in GitHub Desktop.
#!/usr/bin/python
def ujmcount(x, *xs):
if xs:
return ujmcount(*xs) + 1
else:
return 1
print ujmcount(*[1, 2, 3, 4, 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment