Learning to program with Python - the practical tutorial
- Python programming tutorial with 91 lessons in over eight hours of video training
- Get to know all the important basics - from using variables to accessing databases
- Includes exercises to try out and corresponding solution suggestions for self-testing
- Topics include: Reading files, processing CSV and XML data, objects, code analysis, troubleshooting
- From professional developer Jan Brinkmann, who shares his knowledge and enthusiasm for Python with you
The Python way of programming: Use the tutorial to create your own program lines! Learn Python now to get started right away!
91 Videos, 493 minutes
First steps with Python
Programming with Python - 1.1 Welcome
2 minWelcome to the course! Find out what awaits you.
Programming with Python - 1.2 Using Python under Windows
7 minIn just a few steps, your Python development environment is ready. Here: Installation under Windows.
Programming with Python - 1.3 Using Python on macOS
5 minIn just a few steps, your Python development environment is ready. Here: Installation under macOS.
Programming with Python - 1.4 Python on the command line
5 minRun Python on the command line and get to know and use the interactive shell.
Programming with Python - 1.5 Working with PyCharm
6 minPyCharm is a great development environment. Here you will learn how to use it and understand its most important features.
Programming with Python - 1.6 It's all about spaces
5 minPython uses spaces to identify blocks of code. Here you will learn to understand this concept (and what not to do).
Programming with Python - 1.7 Challenge
2 minA first task where you get to know Python guidelines.
Python basics
Programming with Python - 2.1 Variables in Python
9 minVariables - an important basis of every programming language. Here you will learn how to use them in Python.
Programming with Python - 2.2 Numerical data types
6 minEven if Python manages them itself: Data types are an important aspect. In this lesson, you will learn about numerical data types.
Programming with Python - 2.3 Type conversion
6 minMixing several data types? Then you have to work with type conversion. Get to know them here.
Programming with Python - 2.4 Numerical operators
7 minThe 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.
Programming with Python - 2.5 Using strings
7 minStrings are a huge relief in modern languages. Understand how they work in Python.
Programming with Python - 2.6 Using string functions
9 minPython offers several methods for processing strings. Get to know some of them here.
Programming with Python - 2.7 Using comments
3 minComments are an important part of good code. In this video you will learn about the important types.
Programming with Python - 2.8 Using formatted strings
9 minLearn how to work with formatted strings in Python.
Using data collections
Programming with Python - 3.1 Lists
12 minIn other languages, lists are also referred to as arrays. An important way to collect data. Get to know them here.
Programming with Python - 3.3 Dictionaries
7 minAssociative data are under Python Dictionaries. You can also get to know this type here.
Programming with Python - 3.4 Sets
7 minSets represent the mathematical quantity. Find out how to work with them.
Control over the process
Programming with Python - 4.1 Conditions with if
7 minWithout conditions, programming languages would be very static. Discover here how you can make your code dynamic with Python.
Programming with Python - 4.2 Performing comparisons
10 minDirectly related to conditions are the possible comparisons. Get to know some of Python's basic possibilities here too.
Programming with Python - 4.3 Is this really true?
4 minWhat is actually considered "true" in Python? Find out here.
Programming with Python - 4.4 Excursus: Inputs on the command line
1 minIn the other examples, entered data is a recurring theme. Here you will learn how Python provides them.
Programming with Python - 4.5 Repetition with while loops
9 minLoops are also a central aspect of modern programming. Here you will get to know the variant with the keyword "while".
Programming with Python - 4.6 Using for loops
3 minThere are different loop constructs. Here you will get to know the variant with the keyword "for".
Insert: Praxisprojekt
Programming with Python - 5.1 Task: Read in values and calculate average
2 minA practical project to deepen the previous topics.
Programming with Python - 5.2 A possible solution
2 minHere you will find a solution for self-checking.
Comprehensions
Programming with Python - 6.1 List Comprehensions
10 minCreating or initializing lists? This is often easier with comprehensions. Get to know them here.
Programming with Python - 6.2 Dictionary Comprehensions
5 minComprehensions are also available for dictionaries. You can get to know them here.
Programming with Python - 6.3 Set Comprehensions
2 minSets can also be initialized via comprehensions. Learn how this works here.
Functions and generators
Programming with Python - 7.1 Functions with parameters and return values
6 minFunctions enable reusable code and the separation of tasks. Learn the basics here.
Programming with Python - 7.2 Parameters in detail
9 minLearn more details about parameters.
Programming with Python - 7.3 The special value None
3 minThe special value "None" plays an important role in Python. It stands for "no value".
Programming with Python - 7.4 Docstrings
3 minYou can document your code optimally with Docstrings. Find out how here.
Programming with Python - 7.5 Functions as data types
3 minFunctions can also be used as data types. Sounds abstract, but it is very easy to understand. You can find the details in this lesson.
Programming with Python - 7.6 Inner functions and closures
8 minFunctions can do even more. The closures, for example, which you will learn about here, are also important.
Programming with Python - 7.7 Lambda functions
4 minHave you ever heard of lambda functions? Get to know them here.
Programming with Python - 7.8 Generators
7 minFind out here how you can use generators.
Programming with Python - 7.9 Decorators
10 minDecorators are a great concept in Python. Find out what they are used for and how to use them.
Programming with Python - 7.10 Validity scopes and namespaces
7 minThe areas of validity are also important. Find out exactly what they are here.
Modules and packages
Programming with Python - 8.1 Individual Python scripts & parameters
5 minHow are Python projects structured? Get to know the individual scripts in this lesson.
Programming with Python - 8.2 Using and importing modules
4 minModules play an important role. In this video you will learn the important basics.
Programming with Python - 8.3 The search path for modules
2 minModules are imported. Where does Python look for them? Find out here.
Programming with Python - 8.4 Packages: Grouping modules
5 minThe next level in the organization is packages. This is where you learn how to use them.
Programming with Python - 8.5 Batteries included: the Python Standard Library
2 minPython is proud of its standard library. Here you will learn about the concept of "batteries included".
Programming with Python - 8.6 Distributing your own packages
6 minYou can even create and distribute your own packages. Find out how to do this here.
Programming with Python - 8.7 The Python Package Index
3 minUse packages from other developers? The "Python Package Index" is your friend. Get to know it here.
Error handling with exceptions
Programming with Python - 9.1 What to do if there's a fire?
3 minErrors are displayed in Python via exceptions. What is that? How do you deal with them? Find out here.
Programming with Python - 9.2 Errors are displayed as exceptions
3 minProcess errors as exceptions in the code.
Programming with Python - 9.3 Special handling of individual exceptions
4 minAre there several exceptions in the same code area? Find out how you react to individual ones in particular.
Programming with Python - 9.4 Creating your own exceptions
5 minYou can also define your own exceptions to give your code even more meaning. Find out how to do this.
Insertion: Project on the command line
Programming with Python - 10.1 Computer on the command line
3 minThe next project is now implemented on the command line.
Programming with Python - 10.2 A possible solution
4 minFind a possible solution to the task from the last lesson.
Objects and classes
Programming with Python - 11.1 What are objects?
5 minObject orientation - what does it basically mean? Find out in this video.
Programming with Python - 11.2 Defining your own classes
7 minClasses are the basis of objects. Find out how they are defined in Python.
Programming with Python - 11.3 Using inheritance
3 minInheritance is an important pillar of object orientation. Here you will learn the basics.
Programming with Python - 11.4 Overwriting methods
3 minIn inheritance, methods from the parent classes can be overwritten. Find out how Python implements this.
Programming with Python - 11.5 The keyword "super"
4 minThe reference to the superordinate class works via the keyword "super". Find out how this works and why it makes sense.
Programming with Python - 11.6 The self-reference
5 minThe reference to the current object is of central importance. Discover what lies behind it.
Programming with Python - 11.7 Getter and Setter and Python?
10 minAre there classic getters and setters in Python? This lesson contains the answer.
Programming with Python - 11.8 Classes and static methods
6 minStatic methods can be a relief. You should definitely be familiar with this stylistic device.
Programming with Python - 11.9 Magic methods
8 minPython comes with some magical methods. Sounds magical? But it can be explained quite logically. Watch this video for details.
Programming with Python - 11.10 Using type hints
3 minType hints help with readability and autocompletion. Get to know the concept using an example.
Handling files
Programming with Python - 12.1 Writing to files
5 minStore data in files? Extremely practical. Find out how Python can help you.
Programming with Python - 12.2 Reading from files
6 minThe other way round: reading data again. Find out how you can read from files in Python.
Programming with Python - 12.3 Working with binary data
6 minThere is not only the representation as text. Binary data can also be written. Find out how this works.
Programming with Python - 12.4 Processing CSV files
9 minCSV files transport important information in many environments. Learn how to use the concept for yourself.
Programming with Python - 12.5 Working with the XML format
7 minXML plays an important role on the web. Learn how to use it in Python.
Programming with Python - 12.6 Import/Export as JSON
4 minJSON is also an enormously important format on the web. Discover Python on-board tools for processing.
Unit-Testing
Programming with Python - 13.1 Your first unit test
11 minTest your code automatically? Again and again? Welcome to the world of unit tests!
Programming with Python - 13.2 Best Practices for Unit Tests
7 minGet to know some best practices for unit tests.
Programming with Python - 13.3 Using assertions
8 minUse assertions to create tests.
Programming with Python - 13.4 Preparing test cases with setUp and tearDown
2 minPreparing tests or cleaning up after the test? No problem with setUp and tearDown.
Programming with Python - 13.5 Using mockups
5 minReplace individual parts in the code or gain control over the return value? You can use mockups for this.
Web accesses
Programming with Python - 14.1 Creating HTTP requests
9 minDownloading data in Python? Work with the web? Learn how it can work here.
Programming with Python - 14.2 Insertion: SSL error under macOS?
9 minImportant information for macOS users - especially with regard to HTTPS URLs.
Programming with Python - 14.3 Downloading content as an HTTP client
1 minDownload content such as JSON data? Find out how here.
Programming with Python - 14.4 Processing JSON and using data
6 minNow the downloaded data is actually processed.
Access databases
Programming with Python - 15.1 Installing MySQL on Windows
4 minMySQL is a popular database. Find out how to install it on Windows.
Programming with Python - 15.2 Installing MySQL on macOS
4 minSimilar to the setup under Windows, here is a setup for macOS.
Programming with Python - 15.3 Introduction to SQL databases
6 minSQL databases essentially work using the same language: SQL. Here you will find some basics.
Programming with Python - 15.4 Creating a sample database and creating users
8 minCreate your first database and lay the foundation for the examples to come.
Programming with Python - 15.5 Basic functionality: Create, Read, Update and Delete (CRUD)
9 minThe basic functions of every database: the CRUD commands. Get to know them in the SQL context.
Programming with Python - 15.6 MySQL connection with Python
7 minEstablish a connection to the MySQL database with Python.
Programming with Python - 15.7 SELECT: read all data records
3 minRetrieve records from MySQL, your first SELECT statement.
Programming with Python - 15.8 INSERT: Inserting data
4 minInserting new data - also no problem with INSERT statements.
Programming with Python - 15.9 DELETE: Remove entries
3 minEntries are now also removed again.
Programming with Python - 15.10 Retrieving single lines
2 minRetrieve individual rows from MySQL, also using a SELECT statement.
Programming with Python - 15.11 Updating existing data
4 minLearn how to update data with UPDATE statements.
Practical project: book management on command line
Programming with Python - 16.1 The task: Book management
3 minAnother project to apply previous knowledge once again.
Programming with Python - 16.2 My solution for book management
5 minA possible solution for the project from the previous lesson.
Comment now „Learning to program with Python - the practical tutorial“