Created
February 9, 2014 19:23
-
-
Save notpushkin/8904589 to your computer and use it in GitHub Desktop.
This file contains 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
#!/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