Created
May 15, 2013 16:15
-
-
Save hjwp/5585194 to your computer and use it in GitHub Desktop.
Python Koans
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Acknowledgment: | |
# | |
# Python Koans is a port of Ruby Koans originally written by Jim Weirich | |
# and Joe O'brien of Edgecase. There are some differences and tweaks specific | |
# to the Python language, but a great deal of it has been copied wholesale. | |
# So thanks guys! | |
# | |
import unittest | |
import sys | |
if __name__ == '__main__': | |
if sys.version_info < (3, 0): | |
print("\nThis is the Python 3 version of Python Koans, but you are " + | |
"running it with Python 2 or older!\n\n" | |
"Did you accidentally use the wrong python script? \nTry:\n\n" + | |
" python3 contemplate_koans.py\n") | |
else: | |
from runner.mountain import Mountain | |
Mountain().walk_the_path(sys.argv) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment