pySohila’s learning labPYTHON / FIELD GUIDE 01

From scripts to reliable tools / CORE PATH

Files, CSV, JSON & paths

Read and write data with explicit formats and encodings.

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

Treat landing files as immutable inputs and publish new outputs.

Understand the idea

Read and write data with explicit formats and encodings. Treat landing files as immutable inputs and publish new outputs.

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

Practice on your own data

Run the supplied pipeline on data/fixtures/orders.csv and inspect rejects.csv.

Practice this lesson in the Python lab →

EXIT CHECK

Missing columns fail clearly; Arabic text round-trips; original input is untouched.

Prerequisites

Modules, typing & data classes

Sources and further reading

Track progress on this topic → · Markdown source ↗