Python · Beginner READ & PRACTISE

Python Fundamentals

Learn Python completely from scratch, one small idea at a time — no coding experience assumed.

1

units

11

lessons

22

practice questions

~165

minutes

Start learning today

Create a free account, then unlock this and every other Pro course with Learnix Pro for KES 999/month.

Create free account I already have an account

Outcomes

What you'll be able to do

Write and run your very first Python script

Store and use information with variables

Make your program decide and repeat things

Write your own reusable functions

Organize information with lists and dictionaries

Understand what pip and virtual environments are for

How it works

Read it, see it, practise it

Each lesson explains one topic clearly, shows worked examples, checks your understanding with quick questions and ends with a practical task you complete yourself.

Clear explanations

Step-by-step lessons in plain language

37 in this course

Worked examples

Real code and examples you can copy and run

59 in this course

Quick checks

Test your understanding as you go

11 in this course

Fill the blank

Recall the key commands and syntax

11 in this course

Hands-on workspace

A practical task at the end of every lesson

11 in this course

Syllabus

Everything you'll encounter

1

Your First Python Program

A Python program is just a list of instructions, followed in order, top to bottom — like a recipe. Let's write and understand your very first one.

2

Variables & Data Types

A variable is just a labeled box that holds a value — you can look inside it, use what's inside, or put something new in later.

3

Making Decisions & Repeating Things

This is where that "indentation matters" note from lesson one finally makes sense — it's exactly how Python shows what belongs inside a decision or a loop.

4

Functions: Naming a Set of Steps

A function is a named, reusable chunk of instructions — write it once, then just call its name whenever you need those steps again.

5

Organizing Data: Lists & Dictionaries

A list is an ordered row of items, like a numbered shelf. A dictionary is a set of labeled values, like a filing cabinet with named folders.

6

Modules, pip, and Virtual Environments

You almost never write everything from scratch — import lets you reuse code someone else already wrote, and pip is how you get hold of it.

7

Reading and Writing Files

Every program so far has forgotten everything the moment it stops running. Files are how a program remembers something for next time — write it down now, read it back later.

8

Handling Errors Gracefully with try/except

Things go wrong — a file might not exist, someone might type text where a number was expected. try/except lets your program handle that gracefully instead of crashing outright.

9

Working with JSON and API-Style Data

Almost every web service on the internet speaks JSON. Python's json module translates effortlessly between JSON text and Python's own dictionaries and lists.

10

Classes and Objects: Bundling Data and Behavior

A class is a blueprint for creating objects that carry their own data around with them, along with the actions that work on that data.

11

Working with Dates and Times

Almost every real program eventually needs to know "what day is it" or "how long until then" — Python's datetime module handles the surprisingly fiddly math for you.

Finish the course, earn a verifiable certificate

Complete every lesson to receive a Learnix certificate with a unique number anyone can verify online.

Helping with:

🍪 We use essential cookies to keep you signed in, protect your account and remember your settings. We don't use advertising or tracking cookies. Read our Privacy Policy.