Learn Python
Learn Python programming from scratch with beginner-focused tutorials, real-world examples, coding tips, and project ideas in easy way. Start coding today! Basic to advanced topic to be covered including artificial intelligence and machine learning.
Learn Python step by step, with examples you can run today
Free tutorials for beginners: from your first variable to projects, databases, Django and AI. Short lessons, real code, quizzes to check what you learned.
# Your first Python lesson name = "Learner" for day in range(1, 4): print(f"Day {day}: keep going, {name}!") # Output # Day 1: keep going, Learner!
Follow the learning path
Not sure where to begin? Go in this order.
Python basics
Introduction to Python Variables Data typesData structures
Lists Tuples Sets DictionariesFunctions & OOP
Functions Classes and objects InheritanceReal-world skills
File handling Exception handling Modules JSONPractice & projects
Top 10 beginner projects Build a calculator Tkinter app to .exe
Test yourself with quizzes
20 questions each, with answers and explanations.
Math module quiz
Functions, constants and rounding.
NewDate and time quiz
The datetime module in practice.
Context managers quiz
The with statement, __enter__ and __exit__.
Decorators quiz
Wrapper functions and @ syntax.
Iterators and generators quiz
Lazy sequences and yield.
Explore by topic
Go beyond the basics when you are ready.
Popular tutorials
What other learners read most.
PyMongo tutorial
Connect Python to MongoDB, CRUD and aggregation.
Tkinter app to EXE
Package a Python GUI with PyInstaller.
Python script mode
Run your first script the right way.
All tutorials in order
The complete beginner course, from the first lesson onward.
- Introduction to Python
- Python Interactive Mode
- Python Script Mode
- Python Variables
- Python Data Types
- Python Lists
- Python Tuples
- Python Sets
- Python Iterators
- Python Dictionaries: Intro
- Python Dictionaries: Part 1
- Python Dictionaries: Part 2
- Python Dictionaries: Part 3
- Python Functions
- Python Functions: Part 1
- Creating a Simple Function
- Python Classes and Objects
- Python Polymorphism
- Python Inheritance
- Python JSON
- Top 10 Python Projects for Beginners
- Python Modules
- Python Exception Handling
- Python File Handling
- Python Lambda
- Calculator in Python (Application)
Never miss a new tutorial
Follow the feed and get new lessons and quizzes as they are published.
Featured Post
Python Math Module Quiz: 20 MCQs with Answers
Python Math Module Interactive Quiz Test your knowledge of Python's math module, mathematical functions, constants, rounding, powe...
Popular Posts
-
← Back to Home 🐍 Python UI Programming Series — Part 8: Packaging Your Tkinter App into a Standalone Executable (.exe) 📘 Overview ...
-
← Back to Home 🐍 Understanding Python Script Mode – A Beginner's Guide Python is one of the most popular and beginner-friendly progr...
-
Working with MongoDB from Python using PyMongo Your Python Superhero Sidekick for MongoDB (For Beginners to Expert Level) 📘 Table o...