Programming · Free course

Python

Readable, practical and everywhere: a good first language, and a lasting one. From your first line of code to classes, files and decorators.

  • 10 topics
  • 55 lessons
  • About 5 hours
  • English · தமிழ்

What you will learn

  1. Getting Started What Python is, running your first program, and talking to the user. 6 lessons
    1. What is Python, and why learn it?
    2. Your first Python program
    3. When Python complains: reading error messages
    4. Comments in Python
    5. Why Python, and setting it up
    6. Input and output
  2. Variables Understanding variables, data types, and naming conventions 5 lessons
    1. What is a variable?
    2. Data types in Python
    3. Naming variables
    4. Changing the value of a variable
    5. Multiple Assignment
  3. Numbers, Strings and Operators Arithmetic, comparisons, true and false, and working with text. 6 lessons
    1. Numbers and arithmetic
    2. Comparison and logical operators
    3. True, False and None
    4. Strings: working with text
    5. String methods
    6. Formatting output with f-strings
  4. Control Flow Making decisions and repeating work. 5 lessons
    1. Making decisions with if
    2. Loops: for and while
    3. Lists and dictionaries
    4. break, continue, pass and loop else
    5. match: choosing between many cases
  5. Collections Lists, tuples, sets and dictionaries in depth, and comprehensions. 5 lessons
    1. Working with lists
    2. Tuples
    3. Sets
    4. Working with dictionaries
    5. Comprehensions
  6. Functions Naming a piece of work so it can be reused, tested and understood. 5 lessons
    1. Defining functions
    2. Function arguments
    3. Scope: where a name lives
    4. Lambda, map and filter
    5. Recursion
  7. Errors and Files Handling things that go wrong, and keeping data after the program ends. 5 lessons
    1. Handling errors with try and except
    2. Raising your own errors
    3. Writing files
    4. Reading files
    5. CSV and binary files
  8. Modules and the Standard Library Splitting code across files, and the tools that come with Python. 6 lessons
    1. Modules and import
    2. Packages and __init__.py
    3. math and random
    4. Dates and times
    5. Saving data as JSON
    6. Regular expressions
  9. Classes and Objects Bundling data with the functions that work on it: object-oriented Python. 7 lessons
    1. Classes and objects
    2. Methods and attributes
    3. Inheritance
    4. Polymorphism
    5. Abstraction and abstract classes
    6. Encapsulation and properties
    7. Special methods
  10. Advanced Python Iterators, generators, closures, decorators and functional tools. 5 lessons
    1. Iterators, zip and enumerate
    2. Generators
    3. Closures
    4. Decorators
    5. functools and introspection

Questions learners ask

Is this course free?

Yes. Every lesson is free to read, with no sign-up needed. A free account only saves your progress.

Which language is it taught in?

Every lesson is available in English and in Tamil + English, where the explanation is in Tamil and the technical words stay in English.

How long does it take?

About 5 hours in total: 55 short lessons of around five minutes each. Go at your own pace.

Do I need to know anything before starting?

No. The course starts from the beginning and explains each idea before using it.

How do I practise?

Every lesson ends with a quick check and "Try this now" exercises to do on your own computer.