JetBrains Academy logo
Free courseby JetBrains s.r.o.

Introduction to Python

This is an introductory Python course based on the official Python Documentation. The course is intended for those with little to no programming experience who would like to start learning Python.

LevelBeginner
Time commitment5 days

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

About this course

In this course you will start by studying the basics of the language and step by step learn how to create large programs. A wide range of small tasks will help you to master the material better and practice your new knowledge.

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

How it looks like

Getting started

  • 1

    Install the JetBrains Toolbox App

    This is an IDE course, and we’ve already taken care of the settings. Just install JetBrains Toolbox, and we'll handle the rest.

    Download Toolbox
  • 2

    Start the course in your JetBrains IDE

    Press the button below and click Allow to open the Toolbox App. Once your IDE is open, click Start to begin your course.

    Open course
For additional help, check out our Troubleshooting guide

FAQ

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, the course is free, and it does not require a licensed version of the IDE. For further details, see our Subscription Options and Pricing page.

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

Learn next