Maintenance

Site is under maintenance — quizzes are still available.

Go to quizzes
Python · Fundamentals

Python

Step-by-step Python tutorials — ordered lessons from basics to advanced.

Sponsored

Lesson outline

  1. 61
    Profile Code with timeit

    Learn how to profile Python code performance using the timeit module in this hands-on tutorial. Step-by-step walkthrough, troubleshooting, and next steps for progressive mastery.

  2. 62
    Optimize Loops with Comprehensions

    Learn to write faster, more readable Python code using list and dict comprehensions. This lesson covers when and how to replace traditional loops with comprehensions, with practical examples and edge-case handling.

  3. 63
    Sequence Slicing and Indexing

    Master slicing and indexing on sequences in Python. This lesson covers accessing elements, slicing ranges, and applying these fundamentals in practical exercises.

  4. 64
    Set Union, Intersection, Difference

    Learn to manipulate Python sets with union, intersection, and difference operations in this hands-on tutorial. Step-by-step walkthrough with troubleshooting.

  5. 65
    Implement Simple Data Structures in Python

    Learn to implement simple data structures in Python with this hands-on tutorial — covers lists, stacks, queues, and key operations step by step.

  6. 66
    Sorted() and Custom Keys

    Use sorted() with custom key functions to organize Python data flexibly. This tutorial shows how to sort lists, dicts, and more by specified criteria like string length or nested values.

  7. 67
    Linear & Binary Search

    Learn linear and binary search algorithms in Python: step-by-step walkthrough, hands-on exercise, troubleshooting, and what to study next.

  8. 68
    Divide & Conquer Recursion

    Solve complex problems by dividing them into subproblems using recursion, with Python examples.

  9. 69
    Build a To-Do List App

    Learn to build a simple to-do list application in this hands-on Python tutorial – step-by-step guide with code examples and troubleshooting tips.

  10. 70
    Design a calculator with functions and loops

    Design a calculator with functions and loops — Python hands-on tutorial.

  11. 71
    Password Generator with random

    Build a password generator using Python's random module. This lesson covers generating secure passwords of configurable length and character sets, with hands-on code examples and troubleshooting tips.

  12. 72
    Parse Log Files with Regex

    Learn to parse and analyze log files using regular expressions in Python. This lesson covers essential patterns, step-by-step extraction techniques, and practical troubleshooting for real-world log analysis.

    Python — step-by-step tutorials

    What you will find here

    This track walks through python in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.

    Tutorials vs quizzes and code samples

    Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.