Python Basics

Whether you’re a complete beginner or a developer picking up a new language, this is the place to start. These tutorials cover the essential building blocks of Python and will give you the foundation to grow your skills from here.

Once you’re comfortable with the basics, check out our intermediate Python tutorials.

The Best Way to Get Started

The best way to get started is with our Python Basics Book:

Learning Path

Python Basics Book (Supporting Materials & Bonus Resources)

19 Resources ⋅ Skills: Python 3 Fundamentals, Real-World Projects

Python Basics walks you through fundamental concepts step by step, with hands-on examples you can try as you go.

Not Sure Where You Stand?

Take the Python Skill Test to find out which level fits you best:

Take the Quiz: Test your knowledge with our interactive “Python Skill Test” quiz. You’ll receive a score upon completion to help you track your learning progress:


Interactive Quiz

Python Skill Test

Test your Python knowledge in a skills quiz with basic to advanced questions. Are you a Novice, Intermediate, Proficient, or Expert?

Not at all! These tutorials are designed for complete beginners. You don’t need any prior programming experience to get started. The basics tutorials walk you through everything from installing Python to writing your first lines of code.

You’ll need Python installed on your computer and a code editor or IDE. Check out our Python installation guide and our IDE setup tutorial to get up and running. Once you’re set up, you’re ready to write your first Python program.

The best starting point is the Python Basics learning path, which gives you a structured sequence with progress tracking. If you prefer to explore on your own, start with variables and data types, then work through loops, functions, and basic data structures.

After working through the basics, you’ll be able to write Python scripts, automate simple tasks, work with files, and build small programs. Check out our project tutorials for ideas. You’ll also have the foundation you need to move on to intermediate topics.

When you can write simple programs without constantly looking up syntax, you’re ready to level up. If you’re comfortable with variables, loops, functions, and basic data structures, try a project tutorial. If you can follow along and customize the code, head over to the intermediate tutorials.