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 |
Python: A Versatile and Beginner-Friendly Language Introduction Python is a high-level, interpreted programming language created by Guido van Rossum, first ...
| LM | User Interface |
Working with Jupyter (Uni Marburg Environment) Python can be used in different development environments — such as Visual Studio Code, PyCharm, or Thonny — b...
| 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...
| A | Assignment unit 01 |
Please export your exercise solutions from Jupyter as a single Python script named unit01_Assignment.py. Compress this file into a .zip file, and upload it ...
unit02
| A | Assignment (unit 02) |
Please complete Exercises 1 to 5(6) and write your solutions in a single Python script named unit02__ assigment.py. Save all scripts in the same unit02_assi...
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 complete Exercises and write your solutions in a single Python script named unit03_assigment.py. ...
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 complete Exercises write your solutions in a single Python script named unit04_assigment.py. Sav...
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 complete Exercises write your solutions in a single Python script named unit05_assigment.py. Save all scr...
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 |
🎨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 |
If you don’t yet have a development tool installed for working with Python on your computer, you can use Thonny. Thonny is a very simple and beginner-friendl...
| 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...
| LM | Essential Pandas Functions for Data Analysis & Plotting |
🧩 1. Essential Pandas Functions for Data Analysis & Plotting To create statistical diagrams with Matplotlib later on, students should be familiar with t...
| 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 complete Exercises write your solutions in a single Python script named unit08_assigment.py. Save all scripts in the same unit08_assigment folder, co...
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 | Instance variables vs. class variables |
In object-oriented programming, data can belong either to a single object or to the class itself. Understanding this difference is essential for writing log...
| 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 in Object-Oriented Programming |
Inheritance is a fundamental concept in object-oriented programming (OOP). It allows one class to inherit attributes and methods from another class. The ...
| EX | Exercises |
Task In this exercise, you will model an animal using object-oriented programming and determine its typical region and sleep behavior based on predefined da...
| A | Assignment |
Please save your solutions for Exercises 1 to 3 in a Python script named unit09__ex(1-3)_code.py. Save the script in the unit09 folder, compress the folder ...
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...
unit11
Overview
Unit 11 introduces the topic of Artificial Intelligence (AI) and shows how the Python skills you have learned form the foundation of modern AI systems. Arti...
| LM | Introduction |
Welcome to the Artificial Intelligence (AI) introduction section of the Base Python course. In this unit, you will explore what Artificial Intelligence is, ...
| LM | What is Artificial Intelligence? |
Artificial Intelligence (AI) refers to computer systems that are designed to perform tasks which normally require human intelligence. Such tasks include: ...
| LM | The Role of Data in Artificial Intelligence |
Data is the central foundation of every artificial intelligence system. Without data, AI systems cannot learn, adapt, or produce meaningful results. A funda...
| LM | Python and Artificial Intelligence |
Python is one of the most important programming languages used in the field of Artificial Intelligence (AI) and data-driven applications. This does not mean...
| LM | Social Benefits and Risks of Artificial Intelligence |
Artificial Intelligence has a growing impact on society. It offers significant benefits, but also raises important social and ethical concerns. Understandin...
| LM | Reliable and Correct Programming with AI |
Artificial Intelligence can support software development, but it can also produce incorrect, incomplete, or misleading code. A central insight is: AI sy...
unit99
Spotlight
🌟 Spotlight: What’s Next? Congratulations — you have successfully completed the Base Python course! You now have a solid foundation in programming concepts...