Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Online Courses / University Track / Python from Zero

Module 6 of 8

Working with Files and Data

Read data from a file, clean and total it, and write results to a new file without losing the original.

  • 6 hours
  • Outcomes O4, O6
  • Checkpoint: 80% to unlock Module 7

Big idea. Real data lives in files, and a program must read it carefully, check it and never destroy the original.

Outcomes served. O4 and O6 (handle data in files and keep it safe).

Plan your six hours

Assumed. Modules 1 to 5: variables, decisions, loops, collections and functions.

Where this topic appears in practice. A sales list, a class register and a stock count all arrive as files. This module shows how a program reads them, checks them and reports results safely.

Privacy. Your answers stay with you. This course does not store, collect or send anything you write or tick.