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.
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
Content
- About the Course
- Our first program
- Comments
- Variable definition
- Undefined variable
- Variable types
- Type conversion
- Arithmetic operators
- Assignments
- Boolean operators
- Comparison operators
- Concatenation
- String multiplication
- String indexing
- String negative indexing
- Slicing
- in operator
- String length
- Character escaping
- Basic string methods
- String formatting
- Formatted string literals
- Lists introduction
- List operations
- List items
- Nested Lists
- Tuples
- The join() method
- Dictionaries
- Dictionary keys() and values()
- in keyword
- Boolean operators
- Boolean operators order
- if statement
- else and elif statements
- Single-line if-else statement
- for loop
- Loop over a string
- Nested loops
- List comprehension
- Nested list comprehension
- while loop
- break keyword
- else with loops
- continue keyword
- Definition
- Parameters and call arguments
- Return value
- Docstrings
- Default parameters
- Keyword arguments
- Argument order
- args and kwargs
- Recursion
- Definition
- Variable access
- Update variable
- The self parameter
- Call a method from another method
- Special __init__ method
- __str__ vs __repr__ methods
- Class and instance variables
- Import module
- Built-in modules
- from import
- Packages
- Executing modules as scripts
- Open file
- Read file
- Read all lines
- Write to file
How it looks like
Getting started
1
Install the JetBrains Toolbox App
The course requires the latest version of the Toolbox application. If you don’t have it, you can download it here. If your JetBrains Toolbox version is 2.5 or older, you should upgrade it.
2
Launch the course
The Toolbox app will automatically open. A pop-up will ask you to click Allow to proceed. Once the remote IDE is open, simply click Start to begin the course.
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.
To configure the interpreter, please refer to the detailed instructions in the Python section of our Troubleshooting guide.