Introduction to Programming in Python
Make sure you have python
and all required packages installed. Consult the notes on installing Python if needed.
To get started, I recommend working through the official Python tutorial. If you prefer a book, you might want to get Allen B. Downey's Think Python 2e textbook. It is available online, free of charge, or can bought in any decent bookshop (e.g. on Amazon).
If you prefer watching video tutorials rather than working through a book, have a look at Introduction to Python 3.
For learning any programming language it is most important to write your own code. As a student of HTL Bulme, you may use the provided SSH access to our sandbox server.
Python reference documentation can be found at docs.python.org.
Contents
Presentations
The following interactive presentations provide a good starting point for self-study as well.
- Introduction
- Hello World
- Strings
- Functions
- Container Data Types
- Modules and Packages
- Documentation
- Creating Your Own Datatypes
- Unit Testing
- Functional Programming
- Algorithms
- Data Structures
Special Topics
- Installing Python
- Virtual Environments
- Argparse
- Introduction to MicroPython
- Pygame
- Python Web Applications
- Introduction to wxPython
Literature
- Allen B. Downey (2015) Think Python: How to Think Like a Computer Scientist
- Mark Pilgrim (2009) Dive Into Python 3