Think in Python / CORE PATH
Variables, types & missing values
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.
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
- Use str, int, float, bool and None deliberately.
- Convert text at input boundaries and inspect types.
- Use integer minor units for these EGP exercises: 100 piastres = 1 EGP.
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 codePractice 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 →
"12.50" becomes 1250; "0.001" and "NaN" raise ValueError.
Common pitfalls
- bool("False") is True because the string is nonempty.
- Binary floats are unsuitable for exact currency equality.
Prerequisites
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
- Boot.dev · Python for Beginners ↗User-selected YouTube course
- كورس Python منحة ITI ↗User-selected ITI playlist
- Harvard CS50P · lectures & problem sets ↗User-selected HarvardX CS50P course
- Python language tutorial ↗Official documentation
- Python - The Basics - Part 1 | جحر السوعبان ↗User-selected YouTube resource
- Python Full Course for Beginners (13 Hours) – From Zero to Hero ↗User-selected YouTube resource
- 03 تعليم الآلة , القسم الثالث : بايثون Machine learning , Python ↗User-selected YouTube playlist · also in the inherited DE catalog · Inherited from data-engineering-learning-roadmap: Ahmed Shaaban mentorship
Track progress on this topic → · Markdown source ↗