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
function forloop(zählvariable) | |
if(zählvariable<10) | |
return | |
print zählvariable | |
return forloop(zählvariable+1) | |
forloop(0) |
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 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 |