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
Welcome! Dear students, To help you stay organized and make your submission process as smooth as possible, please follow these detailed guidelines carefull...
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 ...
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...
A | Solutions |
Solutions: 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...
unit07
Overview
You will learn what a csv file is and how to use it in a dataframe.
LM | Introduction |
🎨Working with Files Working with files is essential when you want to read data from documents, save analysis results, or exchange information between progra...
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 | Installing |
Matplotlib is not included in the standard Python installation, so you need to install it first. The most common way is using pip and shel. pip install matp...
LM | Basic Functions |
Why Customize Plots? Adding titles, labels, and legends makes your plots easier to understand and more informative. It helps the audience quickly see what e...
LM | Creating |
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 | Plotting Multiple Data |
📊 Plotting Multiple Data Series on One Graph Sometimes you want to display several data series on the same plot to compare them easily. 🟢 Example import m...
EX | Exercises |
✨ Simple Visualization Practice Tasks These tasks are designed to help you practice simple data visualization in Python using Matplotlib. You will use a CSV...
A | Assignment |
Please save your solutions for Exercises 1 to 4 in a single Python script named unit08__ex(1-4)code.py. Save the script in the unit08 folder, compress the f...
unit09
Overview
Object-Oriented Programming (OOP) in Python Object-Oriented Programming (OOP) is a fundamental approach that allows you to structure your programs around ob...
LM | Introduction |
Python is a fully object-oriented language, which means almost everything in Python is an object. OOP lets you: Group related data and functions together...
LM | Class |
What is a Class? A class is like a blueprint for creating objects. It defines a set of attributes (characteristics) and methods (actions) that its objects (...
LM | Class Methods |
A method is a function that is defined inside a class and operates on objects (instances) of that class. Methods allow your objects to perform actions or re...
LM | Inheritance |
Inheritance Inheritance is a powerful concept in object-oriented programming that allows a new class (called a child class or subclass) to inherit attribute...
EX | Exercises |
Task Create a class named Animal. Attributes name: stores the name of the animal. age: stores the age of the animal. Methods region(): this metho...
A | Assignment |
Please save your solutions for Exercises 1 to 2 in a Python script named unit09__ex(1-2)code.py. Save the script in the unit09 folder, compress the folder i...
unit10
Overview
The Base Python course provides a solid foundation for understanding and using Python, one of the most popular and versatile programming languages today. Du...
LM | Introduction |
Welcome to the Base Python course review section! This section is designed to help you refresh your skills, strengthen your confidence, and prepare you for ...
LM | Basic Data Types |
Basic Data Types In Python, data types are the fundamental building blocks that define the nature of a value. The most common basic data types include: ...
LM | Working with Strings and Simple Operators |
What are strings? Strings are sequences of characters, used to store and work with text data in Python. You can think of them as ordered collections of lett...
LM | Conditionals |
Conditionals Conditionals allow your program to make decisions based on certain conditions. In Python, you use: if statements elif (else if) statement...
LM | Object Data Types |
Object Data Types (Lists, Arrays, DataFrames) Python offers various complex data types to store collections of data: Lists: Ordered, mutable collections...
LM | Loops |
Loops Loops let you execute code repeatedly. In Python, the main loop types are: for loops: Iterate over a sequence (like a list or string) while loop...
LM | Working with Files (CSV) |
Working with Files (CSV) Reading and writing files, especially CSV files, is crucial for data analysis and sharing results. In Python, you can use: The ...
LM | Simple Visualisations |
Simple Visualisations Visualization is a key skill for communicating your data insights. In Python, you often use: matplotlib for creating plots and cha...
unit99
Spotlight
🌟 Spotlight: What’s Next? Congratulations — you have successfully completed the Base Python course! You now have a solid foundation in programming concepts...