Here is the table of contents of the tutorials on Python. Most posts have one or more exercises which are designed to give you some experience in using the concepts introduced in that post. The posts are designed to be read in the order listed, so many exercises rely on concepts introduced in earlier posts. Some of the exercises are quite basic, while others require a bit of thought. In these latter exercises, you’ll need to develop an algorithm for solving the problem and then convert the algorithm into Python code. Answers are given to all exercises, although I’d encourage you to give the exercises a try before revealing the answers.
Table of contents
Installing Visual Studio for Python
Creating a Python project in Visual Studio
Installing Python packages in Visual Studio
Data types in Python
- Integers in Python
- Floats and the math library in Python
- Decimals
- Fractions
- Dynamic typing
- Complex numbers
- Strings and formatting
Compound statements
Built-in collection data types
Functions
- Functions: definition and simple arguments
- Functions: arguments and scope
- Anonymous (lambda) functions, map, filter and reduce
- Recursion: introduction and binary trees
- Generator functions and the yield statement
- Generator functions: send(), throw() and close()
Classes and objects
- Classes: definition and constructor
- Encapsulation and private data
- Single inheritance and the super() function: the basics
- Overloading arithmetic operators
- Overloading comparison operators
- Instance, static and class methods
- Encapsulation with the @property decorator
- Overloading the [ ] operator for indexing and slicing