Python Programming from First Principles
Preface · Contents · Contributors
A systematic introduction to Python, from first instructions through object-oriented programming and useful applications.
Welcome to the book
Prof. Philippe Tamla
No previous programming experience is required. You need a computer on which you can read and edit text, run Python, and save files. The opening chapter introduces the tools needed to write and run Python programs.
What you will learn
- Run Python programs with an interpreter (the program that executes Python instructions), IPython (an interactive Python shell with additional exploration tools) and notebooks.
- Use numbers, strings, variables, conversions, Boolean expressions and operators.
- Choose and work with lists, tuples, sets, dictionaries and nested structures.
- Use conditions, pattern matching, loops and loop control.
- Define functions with arguments, return values, scope and decorators; recognize lambdas, recursion and generators.
- Organize modules and use the original standard-library examples, packages and environments.
- Model classes and objects, distinguish instance and class behavior, apply OOP relationships, and use UML to explain a design.
- Apply specialized collections, file handling, serialization, error handling, testing, concurrency and the original HTTP/HTML examples.