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- print() and your first program ro‘yxatsiz sinab ko‘ring Video Practice 3 questions 10 min
- Variables and data types ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
- input() and type conversion ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
- Arithmetic operators ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
- Working with strings ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
Chapter 2. Conditions and loops
5 lessons- Conditions: if, elif, else ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
- Logical operators: and, or, not ro‘yxatdan o‘tgach Video Practice 3 questions 15 min
- The for loop and range() ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
- The while loop ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
- break, continue and nested loops ro‘yxatdan o‘tgach Video Practice 3 questions 20 min
Chapter 3. Lists, tuples, dicts, sets
5 lessons- Lists ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Working with lists: loops, totals, sorting ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Tuples and unpacking ro‘yxatdan o‘tgach Practice 4 questions 15 min
- Dictionaries: keys and values ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Sets and choosing the right structure ro‘yxatdan o‘tgach Practice 4 questions 20 min
Chapter 4. Functions
5 lessons- Functions: def, calling and return ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Arguments: keyword, default values, *args ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Scope and common traps ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Functions as values: lambda, key and map ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Recursion and docstrings ro‘yxatdan o‘tgach Practice 4 questions 25 min
Chapter 5. Working with strings
5 lessons- Inside a string: index, slices, special characters ro‘yxatdan o‘tgach Practice 4 questions 20 min
- String methods ro‘yxatdan o‘tgach Practice 4 questions 20 min
- split and join: breaking and building text ro‘yxatdan o‘tgach Practice 4 questions 20 min
- f-strings: neat formatting ro‘yxatdan o‘tgach Practice 4 questions 20 min
- 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- Kinds of errors and reading a traceback ro‘yxatdan o‘tgach Practice 4 questions 20 min
- try / except: catching errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
- else, finally and validation loops ro‘yxatdan o‘tgach Practice 4 questions 20 min
- raise: raising our own errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Your own exceptions, assert and EAFP ro‘yxatdan o‘tgach Practice 4 questions 25 min
Chapter 7. Files and modules
5 lessons- Files: writing and reading ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Processing a file line by line ro‘yxatdan o‘tgach Practice 4 questions 20 min
- json and csv: ready-made formats ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Modules and import: the standard library ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Your own module, __main__, pathlib and pip ro‘yxatdan o‘tgach Practice 4 questions 25 min
Chapter 8. OOP: classes and objects
5 lessons- Classes and objects ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Class attributes, __str__ and __repr__ ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Inheritance and super() ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Encapsulation and @property ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Special methods and composition ro‘yxatdan o‘tgach Practice 4 questions 25 min
Chapter 9. Comprehensions and iterators
5 lessons- List comprehension: a list in one line ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Dict and set comprehensions ro‘yxatdan o‘tgach Practice 4 questions 20 min
- lambda, sorted(key=...), zip and enumerate ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Iterators: how for really works ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Generator expressions, any and all ro‘yxatdan o‘tgach Practice 4 questions 20 min
Chapter 10. The standard library
5 lessons- collections: Counter and defaultdict ro‘yxatdan o‘tgach Practice 4 questions 20 min
- namedtuple and deque ro‘yxatdan o‘tgach Practice 4 questions 20 min
- re: regular expressions (regex) ro‘yxatdan o‘tgach Practice 4 questions 25 min
- statistics, math and Decimal: exact calculations ro‘yxatdan o‘tgach Practice 4 questions 20 min
- 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- Generator functions: yield ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Generator pipelines and yield from ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Decorators: wrapping a function ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Decorators with arguments, wraps and lru_cache ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Context managers: with ro‘yxatdan o‘tgach Practice 4 questions 25 min
Chapter 12. Type hints and dataclasses
5 lessons- Type hints: writing types down ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Collections, Optional and Union ro‘yxatdan o‘tgach Practice 4 questions 20 min
- dataclass: data classes ro‘yxatdan o‘tgach Practice 4 questions 25 min
- field, frozen, order and __post_init__ ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Enum: a fixed set of values ro‘yxatdan o‘tgach Practice 4 questions 20 min
Chapter 13. Testing
5 lessons- Why we write tests ro‘yxatdan o‘tgach Practice 4 questions 20 min
- unittest: test classes ro‘yxatdan o‘tgach Practice 4 questions 25 min
- The pytest style and table-driven tests ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Mocks: replacing external things ro‘yxatdan o‘tgach Practice 4 questions 25 min
- TDD and what to test ro‘yxatdan o‘tgach Practice 4 questions 20 min
Chapter 14. Asynchronous programming
5 lessons- async and await: making waiting efficient ro‘yxatdan o‘tgach Practice 4 questions 25 min
- gather: several jobs at once ro‘yxatdan o‘tgach Practice 4 questions 20 min
- create_task, timeouts and errors ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Queue and Semaphore: queues and limits ro‘yxatdan o‘tgach Practice 4 questions 25 min
- 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- Clean code: writing readable programs ro‘yxatdan o‘tgach Practice 4 questions 20 min
- A real project's structure ro‘yxatdan o‘tgach Practice 4 questions 20 min
- Final project: a task manager (part 1) ro‘yxatdan o‘tgach Practice 4 questions 25 min
- Final project: commands and tests (part 2) ro‘yxatdan o‘tgach Practice 4 questions 25 min
- After Python: portfolio and career ro‘yxatdan o‘tgach Practice 4 questions 15 min