Created
May 25, 2011 20:37
-
-
Save seungjin/991895 to your computer and use it in GitHub Desktop.
for/while statements are for college students
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
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