Elena' s AI Blog

Python Basics

Elena Daehnhardt

Midjourney AI-generated art
Image credit: Illustration created with Midjourney, prompt by the author.
Image prompt

“An illustration representing cloud computing”

Python Basics

This series is a practical path through Python fundamentals and applied workflows. It focuses on the skills that compound: clean scripting, reproducible experiments, and confidence in debugging and iteration.

Series Progress

6 of 6 posts published


All Posts in This Series

Part 1: Python Programming Language

Python is relatively easy to learn and beginner-friendly. I like Python because you can program any kind of project with it. It is open-source and free for anyone to use. Python has well-tested machine learning libraries and a very supportive community. I will overview herein a basic syntax of the Python programming language. This will be useful for beginners or people who move quickly from another programming language to Python.

Python Programming Language

Part 2: Python Functions: Writing Reusable Code

Functions are the building blocks of reusable Python code. In this post we cover def, parameters, return values, default arguments, *args, **kwargs, type hints, and lambda — all with birds.

Python Functions: Writing Reusable Code

Part 3: Python Error Handling: When Birds Misbehave

Things go wrong in every program. Python's exception system gives you the tools to handle errors gracefully, raise your own, and write code that fails helpfully rather than silently.

Python Error Handling: When Birds Misbehave

Part 4: Python's Standard Library: Your Built-in Toolkit

Python ships with a vast standard library — pathlib, datetime, json, random, dataclasses, and much more. Before you install anything, check what is already there.

Python's Standard Library: Your Built-in Toolkit

Part 5: Python classes and pigeons

Happy 1st of September, dear visitors. I have decided to write a letter to you. The letter concerns pigeons and Python classes, the essential OOP concepts such as inheritance, polymorphism, and encapsulation.

Python classes and pigeons

Part 6: Python Generators and Iterators: Lazy Birds

Generators let you work with sequences that are too large to fit in memory, or that do not exist yet. One yield at a time — exactly like migrating birds arriving one by one.

Python Generators and Iterators: Lazy Birds

Getting Started

New to this series? Start with Part 1: Python Programming Language.

All Posts