All courses

Course

Learn Python

Readable, friendly and everywhere. 10 units that take you from your first program to the language's advanced features.

Units
10
Topics
57
Questions
287
Challenges
25
1

Unit 1

Getting started

Printing, variables and numbers

  1. Hello, Python
  2. Variables
  3. Numbers and math
  4. Unit quiz and coding challenge
2

Unit 2

Text

Strings, slicing and formatting

  1. Strings
  2. Slicing
  3. String methods
  4. f-strings
  5. Converting types
  6. Unit quiz and coding challenge
3

Unit 3

Decisions

Booleans, if statements and match

  1. Comparisons
  2. Logical operators
  3. Truthiness
  4. if, elif, else
  5. Conditional expressions
  6. match statements
  7. Unit quiz and coding challenge
4

Unit 4

Loops

while, for, range and loop patterns

  1. while loops
  2. for loops
  3. range
  4. Looping with zip
  5. Nested loops
  6. for ... else
  7. Unit quiz and coding challenge
5

Unit 5

Collections

Lists, tuples, dicts and sets

  1. Lists
  2. Tuples
  3. Unpacking
  4. Dictionaries
  5. Sets
  6. Unit quiz and coding challenge
6

Unit 6

Comprehensions & iterators

Building collections and lazy sequences

  1. List comprehensions
  2. Dict comprehensions
  3. Set comprehensions
  4. Generator expressions
  5. Iterators
  6. Generator functions
  7. Unit quiz and coding challenge
7

Unit 7

Functions

Parameters, scope, closures and lambdas

  1. Defining functions
  2. Default arguments
  3. Any number of arguments
  4. Scope
  5. Closures
  6. Lambdas
  7. Higher-order functions
  8. Unit quiz and coding challenge
8

Unit 8

Errors and files

Exceptions, context managers and files

  1. Exceptions
  2. Custom exceptions
  3. Context managers
  4. Files
  5. Unit quiz and coding challenge
9

Unit 9

Object-oriented Python

Classes, inheritance and special methods

  1. Classes and objects
  2. Inheritance
  3. Special methods
  4. Properties
  5. Class methods
  6. Dataclasses
  7. Unit quiz and coding challenge
10

Unit 10

Beyond the basics

Modules, decorators, typing, async and the standard library

  1. Modules
  2. Installing packages
  3. Decorators
  4. Type hints
  5. Async and await
  6. The collections module
  7. JSON
  8. Regular expressions
  9. itertools
  10. Unit quiz and coding challenge

Finale

Course exam

100 items from the whole course: 50 questions with choices, 35 typed answers and 15 coding challenges that mix topics.