Sitemap
A list of all the posts and pages found on the site. For you robots out there is an XML version available for digesting as well.
Pages
A flexible two-column Jekyll theme. Perfect for personal sites, blogs, and portfolios hosted on GitHub or your own server. Latest release v4.9.1
Python - no statistics, no fancy modules, just simple Python
Learn the essentials for working with Python.
Splash Page
Bacon ipsum dolor sit amet salami ham hock ham, hamburger corned beef short ribs kielbasa biltong t-bone drumstick tri-tip tail sirloin pork chop.
Posts
examples
unit00
How-to-Base-Python
Find out how this course is supposed to work
Deliverables
Assignments We distinguish between unmarked and marked deliverables (“Studien- und Prüfungsleistung”). Both are required for passing the course, but only the...
Frequently Asked Questions
This is a continuously updated collection of frequently asked questions. What is the expected workload for this course? This course gives 6 ECTS credit poin...
Submission Guidelines
Upload of Your Exercises on ILIAS All your exercise solutions must be uploaded in the following ILIAS folder: Submission/SS_2025 Make sure your folder and ...
unit01
LM | Introduction |
Setting up Python and auxiliary programs for operating Python and introducing a few tools if you get stuck.
LM | User Interface |
Python can be used in various development environments, providing flexibility for different types of users. These interfaces allow programmers to write, test...
EX | Installing Libraries |
What are Libraries? In programming, libraries are collections of pre-written code that provide reusable functions, classes, and methods to perform common ta...
Assignment
Python Basics – Practice Tasks This worksheet introduces Python and helps you get started with the first steps of programming. Follow the tasks carefully an...
unit02
A | Assignment |
Please save your solution for Exercise 1 as a PDF file named unit02_ex1.pdf and place it in the unit02 folder. Then complete Exercises 2 to 5 and write your...
unit03
Overview
In this unit, you’ll learn essential programming tools to process data and make decisions. 📘 Topics Strings: Functions and Methods Working with tex...
LM | Introduction |
Strings are everywhere—from names to file paths. In this unit, you’ll learn how to use string functions and methods to work with text more effectively.
LM | Logical Operators |
Logical operators in Python are used to combine multiple conditions and perform logical operations. These operators are fundamental for decision-making in yo...
LM | Comparison Operators |
Comparison operators in Python allow you to compare values and determine their relationships. These operators are fundamental in making decisions and control...
LM | Mathematical Operators |
Mathematical operators in Python allow you to perform basic arithmetic operations on numbers. These operations are fundamental in any programming language an...
A | Assignment |
🧹 Strings: Functions and Methods. Simple operators Please save your solution Exercises 1 to 8 and write your solutions in a single Python script named unit0...
unit04
Overview
In this unit, you’ll explore how to control the flow of a Python program using conditional logic and error handling. 📘 Topics if statements Execute...
LM | Introduction to Conditionals |
Learn how to control the flow of your Python programs using conditional statements like if, elif, and else.
LM | if Statement |
In Python, if statements are used to control the flow of a program by executing certain blocks of code only when specific conditions are met. The basic form ...
LM | if and elif |
The elif statement in Python, short for “else if,” allows you to check multiple conditions in sequence. It provides a way to handle more than just two possib...
LM | if, elif and else |
The else statement in Python is used to define a block of code that will execute if none of the preceding if or elif conditions are True. It acts as a defaul...
EX | Exercises |
Introduction This unit focuses on Python’s control flow structures, particularly using if, elif, and else. You’ll create small programs to practice decision...
LM | try and catch |
try and catch (or except in Python) are considered control structures in programming.hey are part of error handling and allow a program to manage exceptions ...
A | Assignment |
Conditional Statements and Error Handling in Python Please save your solutions for Exercises 1 to 6 in a single Python script named unit04__ex(1-6)code.py....
unit05
Overview
In this unit, you’ll discover how Python handles structured data using built-in and library-based object types. You will explore different ways to store mult...
EX | Exercises |
Introduction This unit covers Python’s data structures, including lists and data frames (using pandas). You will work through various tasks to build familia...
A | Assignment |
Lists, Arrays and DataFrames without Loops Please save your solutions for Exercises 1 to 9 in a single Python script named unit05__ex(1-9)code.py. For Bonus...
unit06
Overview
🧭 Overview of Loops in Python In Python, loops allow you to execute a block of code repeatedly. The two main types are for-loops and while-loops. Knowing wh...
LM | Introduction |
Loops let you repeat code without writing it multiple times. They help automate tasks, work with lists, and run code until a condition is met. Python has two...
LM | FOR Loop in range() |
🔁 What are For-Loops? For-loops are a core structure in Python that repeat a block of code multiple times. They are ideal when the number of repetitions is ...
LM | FOR Loop in lists |
📋 Why Use For-Loops with Lists? For-loops are extremely useful when working with lists, because they allow you to access each element in a structured and re...
EX | Exercise For |
Introduction This unit includes loop-based challenges with logic, pattern recognition, and list updates. Task 1: FizzBuzz Variation Instructions: Write...
LM | While-Loops |
🔁 What is a While-Loop? A while-loop is a control structure that repeats a block of code as long as a condition is true. Use it when you don’t know in adva...
A | Assignment |
Loops in Python Please save your solutions for Exercises 1 to 4 in a single Python script named unit06__ex(1-4)code.py. For Bonus Exercise, use a separate s...
unit07
Overview
You will learn what a csv file is and how to use it in a dataframe.
LM | Introduction |
🎨 Why Visualizations? Visualizations help us understand data at a glance. They allow us to identify trends, compare groups, and reveal relationships that mi...
LM | Import |
📥 Importing CSV Data with pandas Reading tabular data into a DataFrame is a common task in data analysis. If your CSV file uses commas as separators, period...
LM | Edit |
🛠️ Working with CSV Data In this section, you’ll learn how to read, explore, and manipulate data from a CSV file using pandas. 📥 Download CSV file 📥 Impo...
LM | Export |
📤 Exporting CSV Data with pandas After data processing, you can save your DataFrame to a CSV file using to_csv(): df.to_csv("path/to/your/output_file.csv",...
EX | Exercises |
📚 In-Class Tasks (20 Min): Working with Books CSV Use the online CSV file and follow the steps to explore the dataset using pandas. 📥 CSV URL: https://geom...
A | Assignment |
📚 Working with Books CSV Please save your solutions for Exercises 1 to 3 in a single Python script named unit07__ex(1-3)code.py. For Bonus Exercise, use a ...
unit08
Overview
You will learn how to create simple visualizations in Python using matplotlib.
LM | Introduction |
🎨 Why Visualizations? Visualizations help us understand data at a glance. They allow us to identify trends, compare groups, and reveal relationships that mi...
LM | Install Matplotlib |
💻 Installing Matplotlib Matplotlib is not included in the standard Python installation, so you need to install it first. The most common way is using pip. ...
LM | Creating Matplotlib |
In Python, there are several libraries you can use to visualize charts and graphs. Here are some of the most popular options: Different Types of Plots in Ma...
LM | Basic Functions for Plots |
🎨 Why Customize Plots? Adding titles, labels, and legends makes your plots easier to understand and more informative. It helps the audience quickly see what...
unit09
Introduction
Object-Oriented Programming (OOP) in Python Object-Oriented Programming (OOP) is a fundamental programming paradigm based on the concept of “objects,” which...