Python Essentials
Learn Python from absolute zero: your first program, variables, input, loops, collections, functions, strings, error handling, OOP, files — plus guided builds and a persistent contact-book capstone.
Why learn Python Essentials?
Python reads almost like English, which makes it the friendliest first language you can pick. The same skills that print your first line of text later power data analysis, automation scripts, web backends, and the tooling behind modern AI. Nothing you learn here gets thrown away.
This course assumes you have never written a line of code. It starts with your very first program and builds up through variables, loops, collections, functions, and object-oriented programming, one small interactive step at a time. Every concept is practiced immediately in the built-in editor, so you are writing real Python from minute one instead of watching someone else do it.
By the final module you will have built several small programs and a persistent contact book you can actually run, and you will know exactly which advanced topics to explore next.
Who this course is for
- Complete beginners who have never programmed before
- People switching careers who want a practical, employable first language
- Students who need a structured path instead of scattered YouTube tutorials
- Anyone planning to move into data, automation, or AI work later
What you'll build and practice
- A ticket price calculator that makes real decisions with if/else logic
- A username generator built on string skills
- A quiz program that cannot be crashed by bad input, using error handling
- A BankAccount class that introduces object-oriented thinking
- A capstone contact book that saves its data to a file
What you'll learn
Python Essentials is organized into 13 focused modules. By the end you'll be comfortable with:
- Getting Started
- Variables & Data Types
- Operators & Expressions
- Control Flow
- Loops
- Collections
- Functions
- Strings In Depth
- Error Handling
- Object-Oriented Programming
- Modules & Packages
- File Handling
- What's Next: Advanced Topics
Course curriculum
60 lessons across 13 modules. Lessons marked Free preview are readable without an account.
Module 1. Getting Started
What Python is and how to write your first program
Module 2. Variables & Data Types
Storing and working with different kinds of data
- 8mVariables & Assignment
Learn how to store and name data in Python.
- 10mNumbers: int & float
Integers, floats, and all the math you need.
- 10mStrings
Working with text data in Python.
- 8mBooleans & None
True, False, and the concept of nothing in Python.
- 8mAsking for Input
Make your programs interactive with input() — and learn the friendliest way to build messages: f-strings.
- 8mType Conversion
Converting between int, float, string, and bool.
Module 3. Operators & Expressions
Arithmetic, comparison, and logical operators
- 8mComparison Operators
Comparing values to produce True or False.
- 10mLogical Operators
Combining conditions with and, or, and not.
Module 4. Control Flow
Making decisions with if, elif, and else
- 12mif, elif, else
Making decisions in your code with conditional statements.
- 10mNested Conditions & Truthiness
Put decisions inside decisions — and learn which values Python treats as True.
- 12mBuild: Ticket Price Calculator
Your first complete program — combine input, conversion, and if/elif/else into something real.
Module 5. Loops
Repeating actions with for and while loops
- 10mfor Loops
Make Python repeat work for you — one item at a time.
- 8mrange(): Counting Loops
Repeat something N times, count from A to B, or count down — range() generates the numbers.
- 12mwhile Loops
Repeat as long as a condition holds — when you don't know how many times.
- 10mbreak, continue & pass
Exit a loop early, skip one round, or hold a spot — precision control for any loop.
- 12mLoop Patterns: Sum, Count, Find
The handful of loop recipes — accumulate, count, find the best — that solve most loop problems ever written.
- 10mNested Loops
A loop inside a loop — rows and columns, grids and combinations.
Module 6. Collections
Lists, tuples, dicts, sets, and comprehensions
- 10mLists
One variable, many values — Python's workhorse container.
- 10mChanging Lists
append, insert, remove, pop — lists are built to change.
- 12mSlicing, Sorting & the Copy Trap
Take sub-lists, put things in order — and dodge the bug where two names share one list.
- 8mTuples
The unchangeable list — for data that belongs together and should stay put.
- 10mDictionaries
Look values up by name, not position — key → value pairs.
- 12mWorking with Dictionaries
Add, update, delete, loop — and the counting pattern used everywhere.
- 8mSets
No duplicates, instant membership checks — the specialist collection.
- 10mList Comprehensions
The build-a-list loop, folded into one elegant line.
- 10mChoosing the Right Collection
List, tuple, dict, or set? A decision guide — plus the module's ideas working together.
Module 7. Functions
Writing reusable, clean functions
- 10mDefining Functions
Name a block of code once, run it anywhere — your biggest leap yet.
- 12mReturn Values
print shows a value to humans — return hands it back to the program.
- 10mDefaults & Keyword Arguments
Optional parameters, named arguments — flexible function signatures.
- 12mScope: Local vs Global
Where a variable lives, who can see it, and when it disappears.
- 12m*args & **kwargs
Functions that accept any number of arguments — like print() does.
- 10mLambda Functions
One-expression functions without a name — and the sorted(key=...) superpower.
- 10mWriting Clean Functions
Docstrings, one-job functions, and a refactoring workout — the habits of readable code.
Module 8. Strings In Depth
Slicing, methods, and f-string formatting
- 10mSlicing in Depth
Master the [start:stop:step] triple — reversal, every-other, and the patterns pros reach for.
- 12mString Methods
The built-in toolbox: clean, search, test, split, and join text.
- 10mf-Strings & Formatting
Beyond {name}: decimals, percentages, padding, and alignment — output that looks professional.
- 12mBuild: Username Generator
Slices, methods, f-strings, and functions — one real text-processing build.
Module 9. Error Handling
Catching and raising exceptions gracefully
- 10mReading Error Messages
Tracebacks are roadmaps, not accusations — learn to read them bottom-up.
- 12mExceptions & try/except
Catch errors instead of crashing — the seatbelt of every real program.
- 12melse, finally & raise
The full exception toolkit: success-only code, always-run cleanup, and raising your own errors.
- 12mBuild: The Uncrashable Quiz
Combine every error tool into a program that survives anything a user types.
Module 10. Object-Oriented Programming
Classes, objects, inheritance, and more
- 12mClasses & Objects
Design your own data types — blueprints and the things built from them.
- 12mMethods: Giving Objects Behavior
Functions that live on objects and work with their data through self.
- 12mInheritance
Child classes that reuse, extend, and override a parent — families of types.
- 12mDunder Methods
__str__, __eq__, __len__ — plug your classes into Python's built-in machinery.
- 12mBuild: BankAccount Class
Design a complete class — attributes, guarded methods, dunders, and a subclass.
Module 11. Modules & Packages
Organising code and using the standard library
- 10mImporting Modules
Unlock Python's batteries-included standard library with import.
- 12mThe Standard Library Tour
datetime, collections.Counter, pathlib — the modules working Pythonistas reach for weekly.
- 10mWriting Your Own Modules
Split a growing program into files — and understand the __name__ == '__main__' idiom.
- 10mpip & Virtual Environments
Install the world's Python (PyPI) — and keep each project's dependencies in its own sandbox.
Module 12. File Handling
Reading, writing, and working with JSON files
- 12mReading & Writing Files
Make data outlive the program — open, read, write, and the with statement.
- 12mWorking with JSON
Save whole dictionaries and lists — the data format the internet runs on.
- 15mCapstone: Contact Book
A complete persistent app — menu loop, dictionaries, JSON storage, and every module before this one.
Module 13. What's Next: Advanced Topics
A preview of decorators, generators, and type hints — concepts you will master in Python Intermediate
- 10mIterators: How Loops Really Work
Peek under the for loop's hood — iter(), next(), and StopIteration.
- 12mGenerators & yield
Functions that pause — produce millions of values using almost no memory.
- 12mDecorators
@wrap a function with extra behavior — timing, logging, auth — without touching its code.
- 10mType Hints
Label parameters and returns — self-documenting code that editors can check for you.
- 10mContext Managers & Your Journey
How with really works, writing your own — and the road from here.
Frequently asked questions
- I have never coded before. Is Python Essentials really beginner friendly?
- Yes, that is exactly who it was written for. The first lesson has you run your first program in the browser, and every idea after that is introduced in plain language with a small exercise before moving on. There is no setup, no installs, and no assumed knowledge.
- Do I need to install Python on my computer?
- No. Every lesson runs in an interactive editor inside your browser, with instant feedback on each exercise. If you later want Python on your own machine, the course points you to what to install, but nothing in the course requires it.
- What can I actually do with Python after finishing?
- You will be able to write complete small programs: scripts that process text and files, tools with their own classes, and menu-driven apps like the contact book capstone. You will also be ready for the follow-up tracks on Kodion, like Python Intermediate, SQL, or Python for AI.
- How is this different from watching a Python tutorial series?
- You cannot learn to code by watching. Every lesson here makes you write and run code before you can continue, the AI tutor answers your questions in context when you are stuck, and spaced review sessions bring concepts back right before you would forget them.
- Does the course cover advanced Python like decorators or generators?
- The final module gives you a guided preview of advanced topics such as decorators, generators, and type hints so the syntax will not scare you, but the deep practice for those lives in the Python Intermediate track. Essentials focuses on making the fundamentals stick.
Ready to start Python Essentials?
Create a free account to track progress, earn XP, and get instant help from the AI tutor as you code.
Create your free account