.
Python tutorial¶
The goal of this tutorial is to give prospective itom users a quick overview about the basic Python v3 commands and how to use them within itom.
Content
- Creating a project folder and run a first program
- Variables and names
- Strings and text
- Dictionaries, Lists and Tuples
- If and else statements
- Loops and Lists
- Classes and Objects
- Scopes and Namespaces Example
- Class Definition Syntax
- Class Objects
- Instance Objects
- Method Objects
- Multiple Inheritance
- Functions
- Default Argument Values
- Keyword Arguments
- Arbitrary Argument Lists
- Unpacking Argument Lists
- Lambda Forms
- Documentation Strings
- Modules
- Executing modules as scripts
- The Module Search Path
- “Compiled” Python files
- Importing * From a Package
- Intra-package References
- Packages in Multiple Directories
- Prompting and passing
- Reading and writing files
The following resources have been used:
- Python-Kurs (v3) (German)
- Python Course (v3) (English)
- Official Python 3 documentation
- Moving from Python 2 to Python 3 (Cheatsheet)
- Dive into Python (v3)
- Learn Python The Hard Way (be careful: Python 2)
- Python Tutorial on javas2s.com (v2)
- Python examples (example source code) on javas2s.com (v2)
- Python Tutorial on tutorialspoint.com (v2)