11.4 HW5 Part D: File Intro
In this lab, you willexperiment with opening an reading files.
A file has beenattached to this lab called english.txt. It contains a selection ofrandom english words. There is one word on each line.
Open the file by usingthe command
f = open(“english.txt”,”r”)
Ask the user for asingle letter. Loop through the file and print any word that startswith that letter. Your letter match should be case insensitive. Ifthe user enters A, you should print words that start with a.
Remember to close yourfile once you have completed the task.
You are not requiredto do any
PayPal Gateway not configured
PayPal Gateway not configured