o‘zing o‘rgan
All courses
Pito · Backend developer

Python Basics

From zero to intermediate: print, conditions, loops, lists and dicts, functions, errors, files, OOP, the standard library, generators, decorators, type hints, dataclasses, testing, asyncio and a final project. Every lesson has in-browser practice.

75 lessons ~26 h Born in 1991

Chapter 1. Basics

5 lessons
  1. print() and your first program ro‘yxatsiz sinab ko‘ring Video Practice 3 questions 10 min
  2. Variables and data types ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
  3. input() and type conversion ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
  4. Arithmetic operators ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
  5. Working with strings ro‘yxatdan o‘tgach Video Practice 3 questions 20 min

Chapter 2. Conditions and loops

5 lessons
  1. Conditions: if, elif, else ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
  2. Logical operators: and, or, not ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
  3. The for loop and range() ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
  4. The while loop ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
  5. break, continue and nested loops ro‘yxatdan o‘tgach Video Practice 3 questions 20 min

Chapter 3. Lists, tuples, dicts, sets

5 lessons
  1. Lists ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. Working with lists: loops, totals, sorting ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. Tuples and unpacking ro‘yxatdan o‘tgach Practice 4 questions 15 min
  4. Dictionaries: keys and values ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Sets and choosing the right structure ro‘yxatdan o‘tgach Practice 4 questions 20 min

Chapter 4. Functions

5 lessons
  1. Functions: def, calling and return ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. Arguments: keyword, default values, *args ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. Scope and common traps ro‘yxatdan o‘tgach Practice 4 questions 20 min
  4. Functions as values: lambda, key and map ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Recursion and docstrings ro‘yxatdan o‘tgach Practice 4 questions 25 min

Chapter 5. Working with strings

5 lessons
  1. Inside a string: index, slices, special characters ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. String methods ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. split and join: breaking and building text ro‘yxatdan o‘tgach Practice 4 questions 20 min
  4. f-strings: neat formatting ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Text in practice: ciphers and analysis ro‘yxatdan o‘tgach Practice 4 questions 25 min

Intermediate level

Ro‘yxatdan o‘tib, oldingi darajani tugatgach — kirish imtihoni bilan ochiladi.

Chapter 6. Errors and exceptions

5 lessons
  1. Kinds of errors and reading a traceback ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. try / except: catching errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. else, finally and validation loops ro‘yxatdan o‘tgach Practice 4 questions 20 min
  4. raise: raising our own errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Your own exceptions, assert and EAFP ro‘yxatdan o‘tgach Practice 4 questions 25 min

Chapter 7. Files and modules

5 lessons
  1. Files: writing and reading ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. Processing a file line by line ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. json and csv: ready-made formats ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. Modules and import: the standard library ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Your own module, __main__, pathlib and pip ro‘yxatdan o‘tgach Practice 4 questions 25 min

Chapter 8. OOP: classes and objects

5 lessons
  1. Classes and objects ro‘yxatdan o‘tgach Practice 4 questions 25 min
  2. Class attributes, __str__ and __repr__ ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. Inheritance and super() ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. Encapsulation and @property ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. Special methods and composition ro‘yxatdan o‘tgach Practice 4 questions 25 min

Chapter 9. Comprehensions and iterators

5 lessons
  1. List comprehension: a list in one line ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. Dict and set comprehensions ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. lambda, sorted(key=...), zip and enumerate ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. Iterators: how for really works ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. Generator expressions, any and all ro‘yxatdan o‘tgach Practice 4 questions 20 min

Chapter 10. The standard library

5 lessons
  1. collections: Counter and defaultdict ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. namedtuple and deque ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. re: regular expressions (regex) ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. statistics, math and Decimal: exact calculations ro‘yxatdan o‘tgach Practice 4 questions 20 min
  5. itertools: combinations and chains ro‘yxatdan o‘tgach Practice 4 questions 20 min

Advanced level

Ro‘yxatdan o‘tib, oldingi darajani tugatgach — kirish imtihoni bilan ochiladi.

Chapter 11. Generators, decorators, context managers

5 lessons
  1. Generator functions: yield ro‘yxatdan o‘tgach Practice 4 questions 25 min
  2. Generator pipelines and yield from ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. Decorators: wrapping a function ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. Decorators with arguments, wraps and lru_cache ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. Context managers: with ro‘yxatdan o‘tgach Practice 4 questions 25 min

Chapter 12. Type hints and dataclasses

5 lessons
  1. Type hints: writing types down ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. Collections, Optional and Union ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. dataclass: data classes ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. field, frozen, order and __post_init__ ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. Enum: a fixed set of values ro‘yxatdan o‘tgach Practice 4 questions 20 min

Chapter 13. Testing

5 lessons
  1. Why we write tests ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. unittest: test classes ro‘yxatdan o‘tgach Practice 4 questions 25 min
  3. The pytest style and table-driven tests ro‘yxatdan o‘tgach Practice 4 questions 20 min
  4. Mocks: replacing external things ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. TDD and what to test ro‘yxatdan o‘tgach Practice 4 questions 20 min

Chapter 14. Asynchronous programming

5 lessons
  1. async and await: making waiting efficient ro‘yxatdan o‘tgach Practice 4 questions 25 min
  2. gather: several jobs at once ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. create_task, timeouts and errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
  4. Queue and Semaphore: queues and limits ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. When to use asyncio, threads or processes ro‘yxatdan o‘tgach Practice 4 questions 20 min

Chapter 15. Clean code and a final project

5 lessons
  1. Clean code: writing readable programs ro‘yxatdan o‘tgach Practice 4 questions 20 min
  2. A real project's structure ro‘yxatdan o‘tgach Practice 4 questions 20 min
  3. Final project: a task manager (part 1) ro‘yxatdan o‘tgach Practice 4 questions 25 min
  4. Final project: commands and tests (part 2) ro‘yxatdan o‘tgach Practice 4 questions 25 min
  5. After Python: portfolio and career ro‘yxatdan o‘tgach Practice 4 questions 15 min