Complete all seven questions. Define each requested function or class, return the promised values, then use every worked sample to check your work. Each file question names its own scratch file and writes known content before reading it. Do not use input().
Each question ends with a Real version note showing how the program can read its values with input().