Skip to content

Instantly share code, notes, and snippets.

def slim_shady(shadylist):
# slim_shady takes a list of Slim Shadies, returns Real Slim Shady, if exists
for shady in shadylist:
print "Won't the real Slim Shady please stand up?"
if shady == "Slim Shady":
# it's safe to return here, because it's clear that any remaining
# shadies in this sequence are just imitating
return shady
return None
@J12D
J12D / gist:4132661
Created November 22, 2012 19:40
Forloop
function forloop(zählvariable)
if(zählvariable<10)
return
print zählvariable
return forloop(zählvariable+1)
forloop(0)