Question: Also, This, I need an answer everything you guys put out here is wrong I don't understand this whole thing. = zyBooks @ learn.zybooks.com Q

Also, This, I need an answer everything you guys put out here is wrong I don't understand this whole thing.

Also, This, I need an answer everything you guys put out here

= zyBooks @ learn.zybooks.com Q m 7-2 zyBooks Lab Activities - IT-140-X3255 Introduction to Scripting 24E... a Section 7.9 - IT 140: Introduction to Script My library > IT 140: Introduction to Scripting home > 7.9:LAB: Sorting TV Shows (dictionaries and lists) [& zyBooks catalog @ Help/FAQ @ 1 7.8 LAB: Word frequencies (lists) 7.9 LAB: Sorting TV Shows (dictionaries and lists) Write a program that first reads in the name of an input file and then reads the input file using the file.readlines() method. The input file contains an unsorted list of number of seasons followed b y the corresponding TV show. Your program should put the contents of the input file into a dictionary where the number of seasons are the keys, and a list of TV shows are the values (since multiple shows could have the same number of seasons) ! Sort the dictionary by key (least to greatest) and output the results to a fi associated with the same key with a semicolon G named output_titles.txt Ex: If the input is le named output_keys.txt, separating multiple TV shows Next, sort the dictionary by values (alphabetical order), and output the results to a file filel.txt and the contents of file1 txt are 20 Gunsmoke 30 The Simpsons 10 Will & Grace

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!