Programming Languages

Learn Python

105 short lessons with interactive exercises. You start from zero and move from beginner to advanced.

  • 105 lessons
  • 3 levels
  • Arabic & English
  • Start free

What you will learn

  • Write Python programs using types, control flow and functions
  • Work with data using lists, dictionaries, files and exceptions
  • Design classes, objects and reusable code
  • Use generators and decorators, and run asynchronous tasks

About this course

A complete Python course from zero to pro: the basics, types and functions, then lists, dictionaries, modern functions and file handling, all the way to object-oriented programming, decorators, generators and asynchronous programming. The most popular programming language, and one of the easiest.

Skills

  • Python
  • Data Science
  • Artificial Intelligence
  • General Programming

Lessons

Every lesson is short, and the exercises after it lock in what you learned.

Beginner level

30 lessons
  1. Introduction to Python
  2. Your first Python program
  3. Printing with print
  4. Comments in Code
  5. Variables
  6. Variable Naming Rules
  7. Data Types
  8. Integers
  9. Floats
  10. Strings
  11. Putting values inside strings
  12. Booleans
  13. The None value
  14. Finding a value's type with type
  15. Type Conversion
  16. Reading input with input
  17. Arithmetic Operators
  18. Division, remainder and exponents
  19. Assignment operators
  20. Comparison operators
  21. Logical operators
  22. Conditions with if and else
  23. Using elif
  24. Nested Conditionals
  25. Conditions with if and else
  26. The for Loop
  27. Creating Ranges with range
  28. The while Loop
  29. Controlling loops (break and continue)
  30. Defining & Calling Functions

Intermediate level

35 lessons
  1. Function parameters
  2. Returning values with return
  3. Default Parameters
  4. Keyword Arguments
  5. Passing many values with *args
  6. Passing many keyword arguments with **kwargs
  7. Variable scope
  8. Lists
  9. Accessing list items (list indexing)
  10. List slicing
  11. Adding and removing items (modifying lists)
  12. List sorting
  13. List Comprehensions
  14. Tuples
  15. Unpacking
  16. Dictionaries
  17. Dictionary Operations
  18. Sets
  19. Set Operations
  20. String methods
  21. String Slicing
  22. Built-in functions
  23. Using enumerate
  24. Combining lists with zip
  25. Anonymous Functions with lambda
  26. Using map
  27. Using filter
  28. Handling errors with try and except
  29. Using else and finally with errors
  30. Raising errors with raise
  31. Reading files
  32. Writing files
  33. Working with JSON
  34. Modules and import
  35. Creating your own modules

Advanced level

40 lessons
  1. Introduction to Object-Oriented Programming
  2. Classes
  3. Creating Objects
  4. The __init__ Method
  5. Instance Attributes
  6. Instance methods
  7. Using self
  8. Class attributes
  9. Class methods (classmethod)
  10. Static methods (staticmethod)
  11. Inheritance
  12. Calling the parent (super)
  13. Method Overriding
  14. Polymorphism
  15. Encapsulation
  16. Properties with property
  17. Dunder methods like __str__
  18. Object comparison
  19. Abstract classes
  20. Data classes with dataclass
  21. Type hints
  22. Optional & Union Types
  23. Generics
  24. Functions as Objects
  25. Nested Functions
  26. Closures
  27. Decorators
  28. Iterators
  29. Generators with yield
  30. Generator expressions
  31. Managing resources with with
  32. Building a Custom Context Manager
  33. Packages
  34. Relative & Absolute Imports
  35. Working with dates and times (datetime)
  36. Asynchronous Programming
  37. Defining asynchronous functions (async def)
  38. Waiting for operations with await
  39. Running several tasks with asyncio
  40. Pattern matching with match

Start your first lesson today

Get the Lammah app and pick “Learn Python” from the courses. Each lesson takes a few minutes, and you can start free.

Learn tech skills easily, for freeGet the app