AI & DIGITAL SKILLS MAGAZINE Learn from beginner to expert
Contact EDITION 2026
ISHRAQA7 — The practical digital learning magazine
ISHRAQA 7 ACADEMY · Code & No-code

Python & programming: core concepts and reliable tools

Fictional exercise: develop a local task and statistics tool without any remote service.

  • LevelBeginner → Intermediate
  • Course programme12 modules
  • Course filesPDF · CSV · TXT · ZIP

Also available in Français العربية

01. Install Python and understand execution

Observable skill

Starter project with reproducible run command

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Check the Python version and distinguish scripts from interactive mode. create a project folder with a virtual environment.

Guided demonstration

  1. Check the Python version and distinguish scripts from interactive mode
  2. create a project folder with a virtual environment
  3. run an offline first program and record the output

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Starter project with reproducible run command. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

02. Variables, types and strings

Observable skill

Summary script validating input types

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Define task name, priority and duration variables. convert string duration to integer with error handling.

Guided demonstration

  1. Define task name, priority and duration variables
  2. convert string duration to integer with error handling
  3. print a formatted summary and test values

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Summary script validating input types. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

03. Conditions and business rules

Observable skill

Classifier function and three representative tests

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Define new, in_progress and completed statuses. warn when due date is in the past and task is unfinished.

Guided demonstration

  1. Define new, in_progress and completed statuses
  2. warn when due date is in the past and task is unfinished
  3. test today, yesterday and missing-date edge cases

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Classifier function and three representative tests. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

04. Loops and task collections

Observable skill

Status frequency table with consistent total

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Create a list of eight fictional task dictionaries. count tasks by status without mutating input.

Guided demonstration

  1. Create a list of eight fictional task dictionaries
  2. count tasks by status without mutating input
  3. compare manual and automated totals

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Status frequency table with consistent total. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

05. Functions, parameters and returns

Observable skill

Pure function and documented tests

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Write a completion-rate function with type hints and docstring. handle empty input without division by zero.

Guided demonstration

  1. Write a completion-rate function with type hints and docstring
  2. handle empty input without division by zero
  3. provide demo call and two unit tests

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Pure function and documented tests. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

06. Read and write CSV files

Observable skill

CSV report with explicit invalid-data errors

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Load tasks.csv using csv.DictReader and UTF-8. validate required fields and unique IDs.

Guided demonstration

  1. Load tasks.csv using csv.DictReader and UTF-8
  2. validate required fields and unique IDs
  3. generate a report CSV without overwriting source

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : CSV report with explicit invalid-data errors. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

07. Dictionaries, sets and deduplication

Observable skill

Duplicate report with affected rows

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Build a task_id-to-task index. detect duplicate IDs before calculation.

Guided demonstration

  1. Build a task_id-to-task index
  2. detect duplicate IDs before calculation
  3. report duplicates instead of silently dropping them

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Duplicate report with affected rows. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

08. Exceptions, validation and logging

Observable skill

Robust pipeline with understandable error reports

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Validate date format, status and IDs separately. catch ValueError and return a useful message.

Guided demonstration

  1. Validate date format, status and IDs separately
  2. catch ValueError and return a useful message
  3. keep a local log without personal data

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Robust pipeline with understandable error reports. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

09. Modules, project structure and environment

Observable skill

Project structure and execution documentation

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Separate logic into analyse.py and entry point into main.py. guard execution with if __name__ == '__main__'.

Guided demonstration

  1. Separate logic into analyse.py and entry point into main.py
  2. guard execution with if __name__ == '__main__'
  3. document environment, dependencies and test command

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Project structure and execution documentation. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

10. Unit tests and edge cases

Observable skill

Passing test suite and change log

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Write unittest cases for empty list, valid data and duplicate ID. run tests and interpret failures.

Guided demonstration

  1. Write unittest cases for empty list, valid data and duplicate ID
  2. run tests and interpret failures
  3. fix a deliberately inserted bug and retain regression test

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Passing test suite and change log. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

11. Code quality and local safety

Observable skill

Code review listing three documented risks

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Define naming convention and useful type hints. avoid eval and arbitrary execution of external input.

Guided demonstration

  1. Define naming convention and useful type hints
  2. avoid eval and arbitrary execution of external input
  3. validate file paths and avoid publishing sensitive data

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Code review listing three documented risks. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

12. Final project: offline task analyser

Observable skill

Working Python tool with tests and verifiable outputs

Fictional professional case

Fictional exercise: develop a local task and statistics tool without any remote service.

Method and decisions

Read fictional CSV, find duplicates and overdue dates using separate functions. output a text summary without changing source.

Guided demonstration

  1. Read fictional CSV, find duplicates and overdue dates using separate functions
  2. output a text summary without changing source
  3. deliver script, unittest tests, run log and setup guide

Independent exercise

Variation: reproduce the output with an additional input, describe the change, and save editable source files.

Solution and checks

Expected deliverable : Working Python tool with tests and verifiable outputs. Compare the output, failure cases and documented acceptance criteria. Record untested steps.

Lab limitation : Preproduction training, no production account used. Recheck external tools and interfaces before use.

Check your knowledge

1. Install Python and understand execution
1. What observable deliverable confirms 'Install Python and understand execution'?
2. What is the first decision in 'Install Python and understand execution'?
3. What should be checked to finish 'Install Python and understand execution'?
2. Variables, types and strings
1. What observable deliverable confirms 'Variables, types and strings'?
2. What is the first decision in 'Variables, types and strings'?
3. What should be checked to finish 'Variables, types and strings'?
3. Conditions and business rules
1. What observable deliverable confirms 'Conditions and business rules'?
2. What is the first decision in 'Conditions and business rules'?
3. What should be checked to finish 'Conditions and business rules'?
4. Loops and task collections
1. What observable deliverable confirms 'Loops and task collections'?
2. What is the first decision in 'Loops and task collections'?
3. What should be checked to finish 'Loops and task collections'?
5. Functions, parameters and returns
1. What observable deliverable confirms 'Functions, parameters and returns'?
2. What is the first decision in 'Functions, parameters and returns'?
3. What should be checked to finish 'Functions, parameters and returns'?
6. Read and write CSV files
1. What observable deliverable confirms 'Read and write CSV files'?
2. What is the first decision in 'Read and write CSV files'?
3. What should be checked to finish 'Read and write CSV files'?
7. Dictionaries, sets and deduplication
1. What observable deliverable confirms 'Dictionaries, sets and deduplication'?
2. What is the first decision in 'Dictionaries, sets and deduplication'?
3. What should be checked to finish 'Dictionaries, sets and deduplication'?
8. Exceptions, validation and logging
1. What observable deliverable confirms 'Exceptions, validation and logging'?
2. What is the first decision in 'Exceptions, validation and logging'?
3. What should be checked to finish 'Exceptions, validation and logging'?
9. Modules, project structure and environment
1. What observable deliverable confirms 'Modules, project structure and environment'?
2. What is the first decision in 'Modules, project structure and environment'?
3. What should be checked to finish 'Modules, project structure and environment'?
10. Unit tests and edge cases
1. What observable deliverable confirms 'Unit tests and edge cases'?
2. What is the first decision in 'Unit tests and edge cases'?
3. What should be checked to finish 'Unit tests and edge cases'?
11. Code quality and local safety
1. What observable deliverable confirms 'Code quality and local safety'?
2. What is the first decision in 'Code quality and local safety'?
3. What should be checked to finish 'Code quality and local safety'?
12. Final project: offline task analyser
1. What observable deliverable confirms 'Final project: offline task analyser'?
2. What is the first decision in 'Final project: offline task analyser'?
3. What should be checked to finish 'Final project: offline task analyser'?

Glossary for this page

The key terms used in this content, each with a short definition.

Python
A readable programming language widely used for data analysis, automation and AI.
CSV
A plain text file with delimiter-separated values; the most common format for moving data between programs.
personal data
Any information that can identify a person: name, phone, email, photo, file number…

Course files

Choose a language, then the format you need.

العربية

FileFormatSizeDownload
دليل التدريب PDF 48 KB Download — دليل التدريب (PDF)
دفتر التمارين PDF 35 KB Download — دفتر التمارين (PDF)
معايير التصحيح PDF 36 KB Download — معايير التصحيح (PDF)
المشروع النهائي PDF 22 KB Download — المشروع النهائي (PDF)
بيانات افتراضية CSV 1 KB Download — بيانات افتراضية (CSV)
المراجع الرسمية TXT 1 KB Download — المراجع الرسمية (TXT)
قائمة التحقق CSV 2 KB Download — قائمة التحقق (CSV)
حزمة التدريب المحلية ZIP 2 KB Download — حزمة التدريب المحلية (ZIP)

Français

FileFormatSizeDownload
Manuel de formation PDF 38 KB Download — Manuel de formation (PDF)
Cahier d’exercices PDF 26 KB Download — Cahier d’exercices (PDF)
Critères de correction PDF 27 KB Download — Critères de correction (PDF)
Projet final PDF 15 KB Download — Projet final (PDF)
Données fictives CSV 1 KB Download — Données fictives (CSV)
Sources officielles TXT 1 KB Download — Sources officielles (TXT)
Grille de validation CSV 1 KB Download — Grille de validation (CSV)
Kit de pratique hors ligne ZIP 2 KB Download — Kit de pratique hors ligne (ZIP)

English

FileFormatSizeDownload
Training manual PDF 35 KB Download — Training manual (PDF)
Workbook PDF 25 KB Download — Workbook (PDF)
Solution criteria PDF 26 KB Download — Solution criteria (PDF)
Final project PDF 15 KB Download — Final project (PDF)
Fictional dataset CSV 1 KB Download — Fictional dataset (CSV)
Official sources TXT 1 KB Download — Official sources (TXT)
Validation checklist CSV 1 KB Download — Validation checklist (CSV)
Offline practice kit ZIP 2 KB Download — Offline practice kit (ZIP)