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. 25
    Work with JSON data

    Learn to work with JSON data using the json module in Python. This lesson covers core concepts, step-by-step operations, and practical exercise.

  2. 26
    Handle Dates & Times with Datetime

    Learn to handle dates and times with Python's datetime module in this hands-on tutorial. Understand core concepts, step-by-step examples, troubleshooting, and what to study next.

  3. 27
    Random Numbers with Random

    Learn to generate random numbers in Python using the random module. Covers randint, uniform, random, choice, and sample with practical examples, troubleshooting, and what to study next.

  4. 28
    Use Sets for Unique Elements

    Master set operations in Python for working with unique elements. Covers creation, common operations, and practical use cases with hands-on exercises.

  5. 29
    Build and Use Tuples

    Learn to create and use tuples for immutable sequences in Python. This lesson covers tuple construction, indexing, unpacking, and when to prefer tuples over lists.

  6. 30
    Python enumerate and zip

    Learn to iterate with Python's enumerate and zip. This lesson covers core concepts, step-by-step how-tos, hands-on walkthroughs, and troubleshooting. Practical for progressive mastery of Python fundamentals.

  7. 31
    Sort Data with sorted() & Keys

    Learn to sort lists and custom objects using Python's sorted() function, including custom key functions for advanced ordering.

  8. 32
    Slicing Strings & Lists

    Master slicing for strings and lists in Python. Learn the core concept, step-by-step syntax, practical examples, troubleshooting, and next steps to build progressive mastery.

  9. 33
    Write Simple Unit Tests

    Learn to write simple unit tests with unittest in Python — step-by-step tutorial with hands-on exercise and troubleshooting tips.

  10. 34
    Python's __main__ Entry Point

    Learn how Python uses the `__main__` entry point to control script execution, with practical steps and troubleshooting tips for progressive Python mastery.

  11. 35
    Debug with print and logging

    Learn to debug code with print and logging in Python. Step-by-step tutorial with hands-on exercise, troubleshooting, and next steps.

  12. 36
    Reading & Writing Binary Files

    Learn how to read and write binary files in Python with clear, hands-on steps. This practical tutorial covers core concepts, step-by-step examples, common edge cases, and what to study next.

    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.