ScopeTreasure.

ScopeTreasure Courses

Python Notes in Simple English — Code Scope

Free Python notes for beginners: what Python is, variables and data types, strings, lists and tuples, dictionaries and sets, if-else decisions, loops, functions, modules and pip, files, errors and exceptions — and a final mini project with classes and objects. Runnable code examples, common mistakes and practice tasks in every lesson. From the Code Scope Python series.

12 lessons — Code Scope series PY.1–PY.12 Read online — free PDF download for every lesson Code you can copy & run

Python Courses

12 LESSONS · CODE SCOPE SERIES PY.1–PY.12

Python from zero: your first program, variables, strings, lists, dictionaries, decisions, loops, functions, modules, files, errors, objects — and a final mini project that ties it all together.

Lesson PY.1

What Is Python?

Python is a simple, readable programming language that beginners love — learn what it is, why it is so popular, and write your first program.

Read the notes Video
Lesson PY.2

Variables and Data Types

A variable is a named box that holds a value — learn the main data types, naming rules, and how to check a value's type.

Read the notes Video
Lesson PY.3

Strings

A string is text inside quotes — learn indexing, slicing, useful methods, and f-strings for building messages.

Read the notes Video
Lesson PY.4

Lists and Tuples

A list holds many values in order and can change; a tuple holds many values in order and cannot — learn to create, read, change and loop over both.

Read the notes Video
Lesson PY.5

Dictionaries and Sets

A dictionary stores pairs of keys and values, like a word and its meaning — and a set stores unique values only, with duplicates removed automatically.

Read the notes Video
Lesson PY.6

If, Else and Decisions

Programs make decisions with if, elif and else — learn conditions, the difference between = and ==, and combining tests with and, or and not.

Read the notes Video
Lesson PY.7

Loops: for and while

Loops repeat work without rewriting it — learn for loops with range, while loops, break and continue, and how to avoid infinite loops.

Read the notes Video
Lesson PY.8

Functions in Python

A function is a named block of code you can run again and again — learn def, parameters, return values, and default arguments.

Read the notes Video
Lesson PY.9

Modules and pip

A module is a file of ready-made code you can import — learn the standard library, your own module files, and what pip install really does.

Read the notes Video
Lesson PY.10

Working with Files

Programs can save and read files so data survives after the program ends — learn open, read and write with the safe with-statement.

Read the notes Video
Lesson PY.11

Errors and Exceptions

Errors are messages, not failures — learn the difference between syntax errors and runtime errors, and how try, except and finally handle them.

Read the notes Video
Lesson PY.12

Objects, Classes and a Mini Project

A class is a blueprint and an object is the thing built from it — learn classes, objects and methods, then build a student-marks mini project.

Read the notes Video