This Python lesson is perfect for GCSE computer science classes learning how to write to an external text file and read from an external text file, displaying the results in the Python shell.
It does assume they are familiar with the KS3 national curriculum requirements and have previously been taught how to use sub programs and for loops.
It includes an attractive dyslexia friendly PowerPoint presentation that includes three videos to teach the key skills and includes lots of programming practice and the teachers lesson plan even includes complete answers to all the programming challenges.
Duration: 1 lesson.
This lesson helps pupils understand the following key skills:
- Writing to a new text file
- Appending data to an existing text file
- Reading data from a text file
- The importance of closing a file
- Concatenating line breaks
- Casting from integer to strings
To access this FREE lesson please download it from https://www.tes.com/teaching-resource/python-text-files-gcse-computer-science-python-12223164
Python Text Files (GCSE Computer Science Python)
Digital resources purchased from Nichola Wilkin Ltd. are to be used in the original individual school which purchases the resources only.
Resources may not be shared, distributed or displayed digitally for public view, uploaded to school or borough websites, distributed via email, submitted to file sharing sites or shared with another school or institution, even those within the same academy chain.
For full terms and conditions visit https://www.nicholawilkin.com/terms