GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python_koans/python3/contemplate_koans.py at master · CrazyPython/python_koans

Expand file tree

/

contemplate_koans.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
35 lines (30 loc) · 1.26 KB
/

contemplate_koans.py

Copy path

File metadata and controls

35 lines (30 loc) · 1.26 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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("\nThis is the Python 3 version of Python Koans, but you are " +
"running it with Python 2!\n\n"
"Did you accidentally use the wrong python script? \nTry:\n\n" +
" python3 contemplate_koans.py\n")
else:
if sys.version_info < (3, 3):
print("\n" +
"********************************************************\n" +
"WARNING:\n" +
"This version of Python Koans was designed for " +
"Python 3.3 or greater.\n" +
"Your version of Python is older, so you may run into " +
"problems!\n\n" +
"But lets see how far we get...\n" +
"********************************************************\n")
from runner.mountain import Mountain
Mountain().walk_the_path(sys.argv)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.