Skip to content

Instantly share code, notes, and snippets.

@Isxida
Created February 12, 2013 23:38
Show Gist options
  • Save Isxida/4774547 to your computer and use it in GitHub Desktop.
Save Isxida/4774547 to your computer and use it in GitHub Desktop.
Wreck it ralph - on gist
class Ralph(object):
@staticmethod
def yell(mantra):
print mantra.upper()
@staticmethod
def wreck(item):
del item
class Vanellope(object):
@staticmethod
def cries():
return False # SPOILER
games = ['Fix-It Felix', '...', 'Sugar Rush'] # SPOILER
for game in games:
Ralph.yell("I'm gonna wreck it!")
for item in game:
Ralph.wreck(item)
if Vanellope.cries():
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment