Question: Need help with this...python...add comments and output pictures #2. write a program that reads each line in a file, reverse its lines, and write them
Need help with this...python...add comments and output pictures #2. write a program that reads each line in a file, reverse its lines, and write them in another file, the program also creates a dictionary whose keys are the lower-case letter of English alphabet, and whose value are a list of words from the file that start with the given letter. use the file sonne.txt and output the result to a file named reverse_sonnet.txt include the dictionary at the end of the file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
