Learn Python programming with our Python tutorial for beginners. Dive into the basics and work your way up to advanced concepts. We cover a diverse set of topics, as you’ll soon discover. If you’re in a hurry to learn Python, continue with the next page to learn what Python is and what features make it such a great language.
Table of contents
Why should you read this beginner’s Python tutorial?
I admit there are many terrific tutorials out there. Why should you read this one, instead of the others?
Here are a few reasons:
- This tutorial is easy to read and ideal for beginning programmers. No fancy prose is to be found here. Instead, people tell me I explain stuff in simple terms, making it easy to understand for everyone.
- This online Python tutorial covers the whole range of Python users: from absolute beginners to advanced programmers.
- This Python tutorial is practical. I kept the dry theory to an absolute minimum and focused on getting stuff done in the real world instead. But at the same time, I try to explain how things really work instead of teaching you tricks.
- It’s completely free to use this Python online tutorial!
What you will learn from this tutorial
You will learn about computer programming using the Python language. My goal is to make you understand the language and the ecosystem. After reading this Python tutorial, you will be able to continue exploring Python on your own. You won’t feel lost, but instead, you will know where to look when you’re trying to solve a problem.
To reach this goal, this Python tutorial covers a broad range of topics that will get you productive with Python.
Navigating the Python tutorial
You can browse the tutorial by using the menu at the top. There are also quick links at the top and end of each page to guide you to the next topic, or go back to the previous one.
The tutorial has several sections. I tried to order them so that you can start from the beginning and work your way up, but feel free to browse around! For reference, here’s a global walkthrough of the sections:
- Install Python: learn how to install and open Python.
- Introduction to Python: start with the basics! This section is suitable for absolute beginners, but I recommend everyone to browse through it before continuing with the other sections. You’ll learn about Python variables, strings, functions, conditional programming with booleans, loops, and more.
- Creating Python programs: when you know the basics, it’s time to create actual programs. For this, you need a proper Python IDE like VSCode with Python extensions.
- Classes and objects: a continuation of the introduction to Python. This subject is essential knowledge, and I advise you not to skip it.
- Python data types: in this section, we take a closer look at Python data types like strings, integers, tuples, sets, lists, and dictionaries.
- Virtual environments: these are an important part of Python, so we have a comprehensive section on how to create, use, and delete a venv. We’ll also look at installing packages with Pip, and we’ll dive into some tools to make life easier, like Pipenv.
- Data science using Python: we offer a learning path to using Python for data science, with links to articles from Python Land and external resources. We’ll also look at Jupyter Notebooks, which are ideal for this type of work.
I also included a few bonus sections on related topics, like using the Unix shell.
This tutorial is constantly evolving. New pages are added weekly, and I’m working on a couple of awesome features to improve the learning experience. Make sure to check back regularly and sign up for the newsletter to stay up-to-date!
Who am I?
Good question! What makes me eligible to teach you Python?
I’m Erik, and I’ve been a professional software engineer for more than 25 years. I used many programming languages in my career, but Python is my absolute favorite! I love programming and building complex systems, but I also love to write. That’s why I decided to combine these two by writing this tutorial and creating this website.
if ready: print("Alright, let's get started!")