This tutorial was written under the assumption that the reader (1) has a specific programming task to solve, (2) remembers from their Basisjahr course which general concepts and/or C++-specific language features might help solving the task, but (3) does not yet know a suitable Python counterpart. The tutorial assumes Python 3.6 and higher, but typically will not use features that have been added very recently (i.e. at the time of writing, from Python 3.9).

This tutorial does not try to provide a general, self-contained introduction to Python. It also does not try to enumerate all possible alternatives, e.g. for formatting a string, which matches our policy from the C++ Basisjahr courses. Moreover, in order to keep the programs closer to those you know from your C++ lecture(s), the Python programs presented here may not always be the most idiomatic (pythonic) way of solving a problem in Python. Lastly, the tutorial does not enumerate or suggest Python libraries, nor does it explain how to use popular libraries.

C to Python Converter