Skip to content

Instantly share code, notes, and snippets.

@seungjin
Created May 25, 2011 20:37
Show Gist options
  • Save seungjin/991895 to your computer and use it in GitHub Desktop.
Save seungjin/991895 to your computer and use it in GitHub Desktop.
for/while statements are for college students
def loop (fnc,n,o=0):
o = o + 1
fnc()
loop(fnc,n,o) if n > o else None
def hi():
print "h"
loop(hi,10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment