Python tutorials for absolute beginners.

Swaroop C H fa47f2368a Using Wordpress.com JSON API 12 years ago
assets 93f61f0eba Updated 05-first-steps 12 years ago
.gitignore fa47f2368a Using Wordpress.com JSON API 12 years ago
01-frontpage.md da72f7a104 Updated 01-frontpage 12 years ago
02-preface.md 88a4358e3a Updated 02-preface 12 years ago
03-intro.md 582fec781a Updated 03-intro 12 years ago
04-installation.md d592200e7c Updated 04-installation 12 years ago
05-first-steps.md 845d28568d Updated 08-control-flow 12 years ago
06-basics.md be0c587add Updated 06-basics 12 years ago
07-operators-expressions.md 433061a22c Updated 07-operators-expressions 12 years ago
08-control-flow.md bdcbe0d5fe Fixing cross-chapter links 12 years ago
09-functions.md ea9a25f58c Updated 09-functions 12 years ago
10-modules.md d796fa6570 Updated 10-modules 12 years ago
11-data-structures.md 1299ed055c Updated 11-data-structures 12 years ago
12-problem-solving.md bdcbe0d5fe Fixing cross-chapter links 12 years ago
13-oop.md 0bf7664e83 Reformatted 13-oop 12 years ago
14-io.md b82d5a61a2 Reformatted 14-io 12 years ago
15-exceptions.md 51a0707987 Reformatted 15-exceptions 12 years ago
16-standard-library.md 5837a166d7 Reformatted 16-standard-library 12 years ago
17-more.md f44546816c Reformatted 17-more 12 years ago
18-what-next.md 90e13b5f26 Reformatted 18-what-next 12 years ago
19-appendix-floss.md c01ef83370 Reformatted 19-appendix-floss 12 years ago
20-appendix-about.md 5ff8941e8d Updated 20-about to mention Emacs Markdown Mode 12 years ago
21-revision-history.md ae01e2f5fd Reformatted 21 history and 22 translations 12 years ago
22-translations.md ae01e2f5fd Reformatted 21 history and 22 translations 12 years ago
23-translation-howto.md 56f9a37c62 Reformatted 23 translation howto and LICENSE files 12 years ago
LICENSE 56f9a37c62 Reformatted 23 translation howto and LICENSE files 12 years ago
README.md 4259779297 Updated README 12 years ago
config.json da72f7a104 Updated 01-frontpage 12 years ago
fabfile.py fa47f2368a Using Wordpress.com JSON API 12 years ago
requirements.txt fa47f2368a Using Wordpress.com JSON API 12 years ago

README.md

A Byte of Python

Installation

Ensure Python (>= 2.7) is installed for compiling the sources. You will need Python 3 to run the Python programs itself.

Install Pandoc >= 1.11.1 from http://johnmacfarlane.net/pandoc/installing.html

Install pdflatex from http://www.tug.org/texlive/. Note that Mac users can install MacTex.pkg from http://www.tug.org/mactex/2012/.

Install pip if not present already:

sudo sh -c "curl -k -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py && python get-pip.py && rm get-pip.py"

Install Python libraries needed:

sudo pip install -r requirements.txt

Convert the source files into HTML files:

fab html

Convert the source files into PDF:

fab pdf

Convert the source files into EPUB (ebook):

fab epub

Editing

If you're using Emacs, you must use Jason Blevins' Markdown Mode.

If you're using Vim, then you may like the vim-pandoc plugin. There is one downside though - for long chapters, it becomes really slow, so I edit only in plain text mode (:set ft=), but when reviewing, I use the pandoc (:set ft=pandoc) mode.