Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Created February 9, 2014 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notpushkin/8904589 to your computer and use it in GitHub Desktop.
Save notpushkin/8904589 to your computer and use it in GitHub Desktop.
#!/bin/life
# coding: utf-8
class Olympiad:
def __init__(self, subject):
pass
def makeRound(self, level):
return Round(self, level)
class Round:
def __init__(self, olympiad, level):
pass
def contend():
throw Exception("You failed")
if __alive__:
olymp = Olympiad("Physics")
r = olymp.makeRound("city")
try:
r.contend()
except:
print("Successfully failed!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment