LearnFrenzy
Sign in Take a free test

Tutorial · 39 lessons

Python Tutorial

Learn Python from zero: a free chapter-by-chapter course with clear diagrams, runnable code, the output of every example, exercises and quizzes.

  • Free
  • 14 chapters
  • 3h 28m of reading
Chapters
14
Lessons
39
Reading time
3h 28m
Level
All levels

Curriculum

What's inside this course

Read the chapters in order, or open any lesson. Completed lessons are ticked.

  1. 01 Getting Started3 lessons · 14m
    1. What Is Python? 5 min
    2. Install Python and Set Up VS Code 4 min
    3. Your First Python Program 5 min
  2. 02 Variables and Data Types3 lessons · 15m
    1. Variables in Python 5 min
    2. Data Types: Numbers, Text, Booleans and None 5 min
    3. Input, Output and Type Conversion 5 min
  3. 03 Operators and Expressions2 lessons · 10m
    1. Arithmetic Operators and Precedence 5 min
    2. Comparison, Logical and Membership Operators 5 min
  4. 04 Making Decisions2 lessons · 10m
    1. if, elif and else 5 min
    2. Pattern Matching with match and case 5 min
  5. 05 Loops3 lessons · 14m
    1. for Loops and range() 5 min
    2. while Loops, break and continue 4 min
    3. Nested Loops and Loop Patterns 5 min
  6. 06 Strings2 lessons · 11m
    1. Strings, Indexing and Slicing 5 min
    2. String Methods and Formatting 6 min
  7. 07 Lists and Tuples3 lessons · 16m
    1. Lists 6 min
    2. List Comprehensions 5 min
    3. Tuples and Unpacking 5 min
  8. 08 Dictionaries and Sets3 lessons · 14m
    1. Dictionaries 5 min
    2. Sets 4 min
    3. Choosing the Right Collection 5 min
  9. 09 Functions3 lessons · 17m
    1. Defining and Calling Functions 5 min
    2. Function Arguments: Defaults, *args and **kwargs 6 min
    3. Scope, Lambda and Recursion 6 min
  10. 10 Modules and Packages3 lessons · 15m
    1. Modules and Imports 5 min
    2. pip, Packages and Virtual Environments 5 min
    3. A Tour of the Standard Library 5 min
  11. 11 Files and Exceptions3 lessons · 19m
    1. Reading and Writing Files 6 min
    2. Exceptions: try, except, else, finally 7 min
    3. Working with JSON and CSV 6 min
  12. 12 Object-Oriented Programming3 lessons · 18m
    1. Classes and Objects 6 min
    2. Inheritance and Polymorphism 6 min
    3. Special Methods and Dataclasses 6 min
  13. 13 Advanced Python3 lessons · 17m
    1. Iterators and Generators 5 min
    2. Decorators and Context Managers 6 min
    3. Type Hints and Modern Python 6 min
  14. 14 Projects and Next Steps3 lessons · 18m
    1. Project: Number Guessing Game 6 min
    2. Project: Expense Tracker 6 min
    3. Where Next: AI, Web, Data and Automation 6 min

Preparing with friends?

Share this page with your study group or placement batch.

Popular