The Python way of programming: Use the tutorial to create your own program lines! Learn Python now to get started right away!
Welcome to the course! Find out what awaits you.
In just a few steps, your Python development environment is ready. Here: Installation under Windows.
In just a few steps, your Python development environment is ready. Here: Installation under macOS.
Run Python on the command line and get to know and use the interactive shell.
PyCharm is a great development environment. Here you will learn how to use it and understand its most important features.
Python uses spaces to identify blocks of code. Here you will learn to understand this concept (and what not to do).
A first task where you get to know Python guidelines.
Variables - an important basis of every programming language. Here you will learn how to use them in Python.
Even if Python manages them itself: Data types are an important aspect. In this lesson, you will learn about numerical data types.
Mixing several data types? Then you have to work with type conversion. Get to know them here.
The basic arithmetic operations are the smallest challenge. However, Python offers other operations in addition to addition and co. Get to know the important basic operations here.
Strings are a huge relief in modern languages. Understand how they work in Python.
Python offers several methods for processing strings. Get to know some of them here.
Comments are an important part of good code. In this video you will learn about the important types.
Learn how to work with formatted strings in Python.
In other languages, lists are also referred to as arrays. An important way to collect data. Get to know them here.
Associative data are under Python Dictionaries. You can also get to know this type here.
Sets represent the mathematical quantity. Find out how to work with them.
Without conditions, programming languages would be very static. Discover here how you can make your code dynamic with Python.
Directly related to conditions are the possible comparisons. Get to know some of Python's basic possibilities here too.
What is actually considered "true" in Python? Find out here.
In the other examples, entered data is a recurring theme. Here you will learn how Python provides them.
Loops are also a central aspect of modern programming. Here you will get to know the variant with the keyword "while".
There are different loop constructs. Here you will get to know the variant with the keyword "for".
A practical project to deepen the previous topics.
Here you will find a solution for self-checking.
Creating or initializing lists? This is often easier with comprehensions. Get to know them here.
Comprehensions are also available for dictionaries. You can get to know them here.
Sets can also be initialized via comprehensions. Learn how this works here.
Functions enable reusable code and the separation of tasks. Learn the basics here.
Learn more details about parameters.
The special value "None" plays an important role in Python. It stands for "no value".
You can document your code optimally with Docstrings. Find out how here.
Functions can also be used as data types. Sounds abstract, but it is very easy to understand. You can find the details in this lesson.
Functions can do even more. The closures, for example, which you will learn about here, are also important.
Have you ever heard of lambda functions? Get to know them here.
Decorators are a great concept in Python. Find out what they are used for and how to use them.
The areas of validity are also important. Find out exactly what they are here.
How are Python projects structured? Get to know the individual scripts in this lesson.
Modules play an important role. In this video you will learn the important basics.
Modules are imported. Where does Python look for them? Find out here.
The next level in the organization is packages. This is where you learn how to use them.
Python is proud of its standard library. Here you will learn about the concept of "batteries included".
You can even create and distribute your own packages. Find out how to do this here.
Use packages from other developers? The "Python Package Index" is your friend. Get to know it here.
Errors are displayed in Python via exceptions. What is that? How do you deal with them? Find out here.
Process errors as exceptions in the code.
Are there several exceptions in the same code area? Find out how you react to individual ones in particular.
You can also define your own exceptions to give your code even more meaning. Find out how to do this.
The next project is now implemented on the command line.
Find a possible solution to the task from the last lesson.
Object orientation - what does it basically mean? Find out in this video.
Classes are the basis of objects. Find out how they are defined in Python.
Inheritance is an important pillar of object orientation. Here you will learn the basics.
In inheritance, methods from the parent classes can be overwritten. Find out how Python implements this.
The reference to the superordinate class works via the keyword "super". Find out how this works and why it makes sense.
The reference to the current object is of central importance. Discover what lies behind it.
Are there classic getters and setters in Python? This lesson contains the answer.
Static methods can be a relief. You should definitely be familiar with this stylistic device.
Python comes with some magical methods. Sounds magical? But it can be explained quite logically. Watch this video for details.
Type hints help with readability and autocompletion. Get to know the concept using an example.
Store data in files? Extremely practical. Find out how Python can help you.
The other way round: reading data again. Find out how you can read from files in Python.
There is not only the representation as text. Binary data can also be written. Find out how this works.
CSV files transport important information in many environments. Learn how to use the concept for yourself.
XML plays an important role on the web. Learn how to use it in Python.
JSON is also an enormously important format on the web. Discover Python on-board tools for processing.
Test your code automatically? Again and again? Welcome to the world of unit tests!
Get to know some best practices for unit tests.
Preparing tests or cleaning up after the test? No problem with setUp and tearDown.
Replace individual parts in the code or gain control over the return value? You can use mockups for this.
Downloading data in Python? Work with the web? Learn how it can work here.
Important information for macOS users - especially with regard to HTTPS URLs.
Download content such as JSON data? Find out how here.
Now the downloaded data is actually processed.
MySQL is a popular database. Find out how to install it on Windows.
Similar to the setup under Windows, here is a setup for macOS.
SQL databases essentially work using the same language: SQL. Here you will find some basics.
Create your first database and lay the foundation for the examples to come.
The basic functions of every database: the CRUD commands. Get to know them in the SQL context.
Establish a connection to the MySQL database with Python.
Retrieve records from MySQL, your first SELECT statement.
Inserting new data - also no problem with INSERT statements.
Entries are now also removed again.
Retrieve individual rows from MySQL, also using a SELECT statement.
Learn how to update data with UPDATE statements.
Another project to apply previous knowledge once again.
A possible solution for the project from the previous lesson.
Comment now „Learning to program with Python - the practical tutorial“