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
- Introduction to Python
- Your first Python program
- Printing with print
- Comments in Code
- Variables
- Variable Naming Rules
- Data Types
- Integers
- Floats
- Strings
- Putting values inside strings
- Booleans
- The None value
- Finding a value's type with type
- Type Conversion
- Reading input with input
- Arithmetic Operators
- Division, remainder and exponents
- Assignment operators
- Comparison operators
- Logical operators
- Conditions with if and else
- Using elif
- Nested Conditionals
- Conditions with if and else
- The for Loop
- Creating Ranges with range
- The while Loop
- Controlling loops (break and continue)
- Defining & Calling Functions
Intermediate level
35 lessons
- Function parameters
- Returning values with return
- Default Parameters
- Keyword Arguments
- Passing many values with *args
- Passing many keyword arguments with **kwargs
- Variable scope
- Lists
- Accessing list items (list indexing)
- List slicing
- Adding and removing items (modifying lists)
- List sorting
- List Comprehensions
- Tuples
- Unpacking
- Dictionaries
- Dictionary Operations
- Sets
- Set Operations
- String methods
- String Slicing
- Built-in functions
- Using enumerate
- Combining lists with zip
- Anonymous Functions with lambda
- Using map
- Using filter
- Handling errors with try and except
- Using else and finally with errors
- Raising errors with raise
- Reading files
- Writing files
- Working with JSON
- Modules and import
- Creating your own modules
Advanced level
40 lessons
- Introduction to Object-Oriented Programming
- Classes
- Creating Objects
- The __init__ Method
- Instance Attributes
- Instance methods
- Using self
- Class attributes
- Class methods (classmethod)
- Static methods (staticmethod)
- Inheritance
- Calling the parent (super)
- Method Overriding
- Polymorphism
- Encapsulation
- Properties with property
- Dunder methods like __str__
- Object comparison
- Abstract classes
- Data classes with dataclass
- Type hints
- Optional & Union Types
- Generics
- Functions as Objects
- Nested Functions
- Closures
- Decorators
- Iterators
- Generators with yield
- Generator expressions
- Managing resources with with
- Building a Custom Context Manager
- Packages
- Relative & Absolute Imports
- Working with dates and times (datetime)
- Asynchronous Programming
- Defining asynchronous functions (async def)
- Waiting for operations with await
- Running several tasks with asyncio
- 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.






