pptx, 41.73 KB
pptx, 41.73 KB
docx, 26.03 KB
docx, 26.03 KB
pptx, 615.71 KB
pptx, 615.71 KB
pptx, 31.09 KB
pptx, 31.09 KB
txt, 150 Bytes
txt, 150 Bytes
txt, 178 Bytes
txt, 178 Bytes
txt, 126 Bytes
txt, 126 Bytes
In this lesson, students learn about file handling commands in Python, through a poem activity. The task is to create a program to read three poems from three different text files, and pick random lines from each poem to create a new one, which they have to write in a new file.

This lesson helps prepare students for their Non-Exam Assessment.

There are mini-tasks (match-up with extensions) that students can do before delving into the poem activity, to familiarise themselves with the file handling commands.

Students are provided with the worksheets and a PowerPoint slide with the file commands for easy reference (this can be emailed or printed and handed to them). The bundle also includes the text files that contain the poems, these can be emailed or provided to students before they start the main task.

The lesson PPT includes notes to help non-specialist teachers, as well as clear Learning Objectives.
The lesson can also be taught to high-ability KS3 students, depending on the level of their programming skills.

Review

5

Something went wrong, please try again later.

cryssy25

6 years ago
5

This was worth every penny. My pupils loved doing it including the extension tasks. For fun, we then adapted it so that pupils each write a short story in lines in a text file starting with "One night in Town" . Put them in groups of 4 and they each shared their files with each other and then randomly write a line from each of the files. Some hilarious stories!

Report this resourceto let us know if it violates our terms and conditions.
Our customer service team will review your report and will be in touch.