JetBrains Academy logo
Free courseJetBrains Academy

Introduction to Python

Learn Python like a pro from day one—code in a professional IDE designed to boost your growth.

Skill levelBeginner
Time to complete 5 days
Skill levelBeginner
Time to complete 5 days

About this course

You'll start from scratch in the same professional IDE real developers use—with guided setup, instant feedback, and built-in hints to support your learning.

Each lesson is short, focused, and easy to follow, helping you build core programming skills and real-world confidence from day one. Plus, the JetBrains Academy Discord community is there whenever you need support.

Your result: job-ready Python fundamentals that open doors to data science, automation, and software development.

Code editor icon

This course runs directly in your JetBrains IDE

Learn more

Content

  1. About the Course
  2. Our first program
  3. Comments
  1. Variable definition
  2. Undefined variable
  3. Variable types
  4. Type conversion
  5. Arithmetic operators
  6. Assignments
  7. Boolean operators
  8. Comparison operators
  1. Concatenation
  2. String multiplication
  3. String indexing
  4. String negative indexing
  5. Slicing
  6. in operator
  7. String length
  8. Character escaping
  9. Basic string methods
  10. String formatting
  11. Formatted string literals
  1. Lists introduction
  2. List operations
  3. List items
  4. Nested Lists
  5. Tuples
  6. The join() method
  7. Dictionaries
  8. Dictionary keys() and values()
  9. in keyword
  1. Boolean operators
  2. Boolean operators order
  3. if statement
  4. else and elif statements
  5. Single-line if-else statement
  1. for loop
  2. Loop over a string
  3. Nested loops
  4. List comprehension
  5. Nested list comprehension
  6. while loop
  7. break keyword
  8. else with loops
  9. continue keyword
  1. Definition
  2. Parameters and call arguments
  3. Return value
  4. Docstrings
  5. Default parameters
  6. Keyword arguments
  7. Argument order
  8. args and kwargs
  9. Recursion
  1. Definition
  2. Variable access
  3. Update variable
  4. The self parameter
  5. Call a method from another method
  6. Special __init__ method
  7. __str__ vs __repr__ methods
  8. Class and instance variables
  1. Import module
  2. Built-in modules
  3. from import
  4. Packages
  5. Executing modules as scripts
  1. Open file
  2. Read file
  3. Read all lines
  4. Write to file

Learn with the tools developers use every day

Real-world development environmentZoom
Real-world development environmentZoom
Real-world development environmentZoom
Real-world development environmentZoom
  • Real-world development environment

    Gain practical experience with the tools and workflows you'll use in your career, minimizing the learning curve when transitioning to real-world projects.

  • Project-based learning journey

    Our plugin is built to help you finish real-world coding projects, which you can display in your code portfolio after completion.

  • Collaboration via Git

    Effortlessly track changes and collaborate on projects using Git, an essential tool for programmers in every field.

  • Focused learning

    Enjoy fewer distractions with assignments, code, debugging, and version control all in one window.

Student? Get JetBrains IDEs & hands-on courses — free for the full duration of your studies.

Apply using your school email, student ID, ISIC card, or another official document.

What do you need to start?

1

Install the Free JetBrains Toolbox App

The JetBrains Toolbox App 2.7+ makes setting up your course effortless. Already have a compatible IDE? It will launch it. If not, the app will install the right free IDE for your course.

Learn more about our licences here.

Download
2

Confirm the course launch

Click Launch course and then Allow to open the Toolbox App.

Select Always Allow to skip this confirmation in the future.

To return to the course later, find it in your IDE's recent projects.

Need more help? Check out our guide.

The JetBrains Toolbox App 2.7+ makes setting up your course effortless. Already have a compatible IDE? It will launch it. If not, the app will install the right free IDE for your course.

Learn more about our licences here.

Download

Click Launch course and then Allow to open the Toolbox App.

Select Always Allow to skip this confirmation in the future.

To return to the course later, find it in your IDE's recent projects.

Need more help? Check out our guide.

FAQ and troubleshooting

Yes, you will need the JetBrains Toolbox App and a JetBrains IDE.

But don’t worry! Just click the Open course button and then select Allow in the resultant popup to install the JetBrains Toolbox App. We've taken care of all the necessary settings, and the app will handle the rest of the setup for you.

The JetBrains Toolbox App checks which IDE is compatible with your course and whether it is installed on your computer. If you have the necessary IDE installed, the app will open it. If not, JetBrains Toolbox will initiate the installation, prioritizing free community editions.

Yes, the JetBrains Toolbox App is essential even if you already have a JetBrains IDE. It automatically prepares your IDE for studying by installing the essential plugins and updating the IDE if necessary.

Please make sure your version of the JetBrains Toolbox App is 1.28 or newer. To update, open the app and click Update Toolbox App to 2.x.x., or download the latest version here.

Yes! It's 100% free and works with both the free and paid versions of JetBrains IDEs.

If you're a student, apply for the Student Pack to get full access to JetBrains IDEs for the duration of your studies. If not, check if you qualify for a free non-commercial license.

To configure the interpreter, please refer to the detailed instructions in the Python section of our Troubleshooting guide.

Report IssueLicense

Want to become a Python pro? Try our roadmap!

Roadmap image

Cover each topic step-by-step and stay focused on learning with this learning plan.

Roadmap image

Learn to code like a pro with JetBrains Academy

Explore catalog
Privacy & SecurityTerms of UseTrademarksLegalGenuine Tools
© 2000—2025 JetBrains s.r.o. All rights reserved. Developed with drive and IntelliJ IDEA

You'll take this course in your JetBrains IDE.
Just install JetBrains Toolbox 2.7+, and we'll handle the rest!

Learn next

Sourse logoIn-IDE learning

Mastering Python Libraries – NumPy

Tame messy math with NumPy, the Python library that powers AI, data science, and high-speed computing. Slice arrays, crunch numbers, and build real-world skills in a learner-friendly, professional IDE.

JetBrains Academy

Sourse logoIn-IDE learning

Introduction to Machine Learning

Train your brain to train machines. Build your first ML models from scratch—from simple classifiers to neural networks—with hands-on coding, a bit of Python, and a guided IDE built for learners.

JetBrains Academy

Sourse logoIn-IDE learning

Mastering Python Libraries – Pandas

Think in tables, not loops. Learn Pandas—the library used by analysts, scientists, and engineers to clean, reshape, and analyze real-world data in Python.

JetBrains Academy