Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zachallaun/flashcode
Interactive Python Tutorial
https://github.com/zachallaun/flashcode
Last synced: 3 days ago
JSON representation
Interactive Python Tutorial
- Host: GitHub
- URL: https://github.com/zachallaun/flashcode
- Owner: zachallaun
- Created: 2011-11-09T18:17:41.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2011-12-07T22:10:38.000Z (almost 13 years ago)
- Last Synced: 2024-10-11T19:20:04.000Z (27 days ago)
- Language: Python
- Homepage:
- Size: 127 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# FlashCode
### Interactive Python Tutorial#### About
This was created as a small academic project. Please do not expect any particular level of quality in this code. I am aware of a plethora of shortcomings and weak points, but anyone should feel free to point out shitty code if they feel compelled.#### Usage
$ python3.2 run.py
=======================================================================
Welcome to FlashCode (FC), the interactive Python learning environment.
=======================================================================Please choose your module by inputting the number below.
(1) Beginnings
(2) VariablesModule number (or 'q' to quit): 1
===============
(1) Beginnings
===============(FC) ">>>" is your Python prompt. This means the Python interpreter is
ready to accept code. Try typing your name surrounded by quotes,
like "Zach".(1)>>> "Zach"
'Zach'(FC) See that? Python returned your name to you. What you created was
a string, which is a series of characters surrounded by single or
double quotes. Your name has a length, too. Try passing your name to
the function len(), as in len("name").(2)>>> len("Zach")
4#### Extensibility
Modules live in `data/`, and are declared in `data/manifest.txt`. Format your manifest module declarations as seen in the file. Manifest supports full-line comments with `#`. You can surround
code with `||` for added formatting, as in "Try entering ||len(myName)||".Format modules as seen in `data/begtut.txt`. Regular expressions used for input and output validation. Currently, the validation hook will only run on some kind of output. (This is why the variables module requires declared variables to be printed.)