pySohila’s learning labPYTHON / FIELD GUIDE 01

Think in Python / CORE PATH

Variables, types & missing values

A name refers to an object; type determines the operations that object supports.

3h planning budget · Sohila Khaled Abbas · Reviewed 2026-11-01

Compare Python None with SQL NULL, and distinguish missingness from zero and an empty string.

Understand the idea

A name refers to an object; type determines the operations that object supports. Compare Python None with SQL NULL, and distinguish missingness from zero and an empty string.

Work through the practice with a tiny fixture, predict the result before running it, and record one boundary case. Use the exit check as evidence before moving on.

What to learn

A small original example

from decimal import Decimal
amount = Decimal("12.50")
piastres = int(amount * 100)
print(piastres)  # 1250; validate precision before int in real input code

Practice on your own data

Task 02: convert a decimal EGP string to integer piastres; reject fractions below one piastre.

Practice this lesson in the Python lab →

EXIT CHECK

"12.50" becomes 1250; "0.001" and "NaN" raise ValueError.

Common pitfalls

Prerequisites

Run a program

Boot.dev chapter 2 · 15:02 ↗

Video and playlist companions

Choose one explanation for the concept, then attempt the practice. These are topic mappings, not a claim that every linked lesson covers every outcome.

Boot.dev · Python for Beginners

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

كورس Python منحة ITI

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Python - The Basics - Part 1 | جحر السوعبان

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Python Full Course for Beginners (13 Hours) – From Zero to Hero

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

03 تعليم الآلة , القسم الثالث : بايثون Machine learning , Python

Loads YouTube on request. Open on YouTube ↗ if the owner restricts embedding.

Sources and further reading

Track progress on this topic → · Markdown source ↗