-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontemplate_koans.py
35 lines (30 loc) · 1.25 KB
/
contemplate_koans.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/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 sys
if __name__ == '__main__':
if sys.version_info < (3, 0):
print("\nEste programa requiere la version 3 de Python pero esta " +
"ejecutandose con Python 2!\n\n"
"Usaste la llamada incorrecta? \nPrueba con:\n\n" +
" python3 contemplate_koans.py\n")
else:
if sys.version_info < (3, 3):
print("\n" +
"********************************************************\n" +
"ATENCION:\n" +
"Este programa requiere la version 3.3 de " +
"Python o superior.\n" +
"Tu version de Python es antigua, por lo que te puede dar " +
"problemas!\n\n" +
"Pero veamos hasta donde podemos llegar...\n" +
"********************************************************\n")
from runner.mountain import Mountain
Mountain().walk_the_path(sys.argv)