Python African Tour (PAT) Tutor¶
Contents:
Meet Python¶
Python is a programming language that lets you work more quickly and integrate your systems more effectively. [1]
Why Python¶
- Easy to learn and be productive.
- Compact language with very good design.
- Produce beutiful code by enforcing indentation.
- Clean code makes maintenance and debugging easier and less annoying. Simple syntax.
- Less is more.
- Write less code to achieve more functionality. There is usually one good way of doing something.
- General-purpose language.
- Can be used for Web development, Desktop (GUI), mobile development, Scientific calculations and as a scripting language.
- New kid on the block.
- All the cool kids are using it, Eg Google, NASA, Yahoo, Instagram. [2]
- Dynamically type language.
- Use variables on the fly without declaring first
Why not Python¶
- Enforced indentation can be annoying.
- Most programming languages like Java, Ruby have no restrictions on indentation. In python, you get a syntax error if you do not indent properly
- Not supported by common hosting platforms.
- Deployment on external servers, mostly for web applications.
Interpreted language. This may be slower than compiled languages.
- Dynamically typed language.
- Can make execution slower especially on devices with limited processing power. Eg: Mobile Undeclared variables are caught at runtime errors.
Getting Started¶
A comprehensive tutorial on the Python programming language. This tutorial covers three main groups of users:
- Beginners
- Intermediate
- Advanced
Building the docs¶
The documentation is hosted online. If you want to build it, you will need the following:
Tools needed¶
These are the tools needed to follow the examples in the tutorials.
Required
- Name: PythonVersion: 2.7Purpose: Programming Language
Optional
Goal #1: Install Python¶
This section has instructions for installing Python and running Python from a command prompt.
Goal #2: Prepare a text editor¶
This section has instructions for installing Python and running Python from a command prompt.
Goal #3: Practice starting and exiting Python¶
This section has instructions for installing Python and running Python from a command prompt.