Python Basics
Learn Python collections, loops, functions, classes, exceptions, JSON, and other core language features with runnable examples.
Run Python Basics online11 runnable examples
For Loop in Python
Learn Python for loops with range, enumerate, and a runnable example.
View example →While Loop in Python
Run a Python while loop and learn how its condition controls repetition.
View example →Function in Python
Define and call a Python function with parameters and a return value.
View example →Merge Dictionaries in Python
Merge Python dictionaries with the modern union operator.
View example →List Comprehension in Python
Transform and filter values with a Python list comprehension.
View example →Class and Object in Python
Define a Python class, create an object, and call an instance method.
View example →Object-Oriented Programming in Python
Learn encapsulation, inheritance, method overriding, and polymorphism with a runnable Python OOP example.
View example →