IN PYTHON ONLY.
and the contents of file1.txt are:
20 Gunsmoke 30 The Simpsons 10 Will & Grace 14 Dallas 20 Law & Order 12 Murder, She Wrote
the file output_keys.txt should contain:
30: The Simpsons 20: Gunsmoke 20: Law & Order 14: Dallas 12: Murder, She Wrote 10: Will & Grace
and the file output_titles.txt should contain:
Will & Grace The Simpsons Murder, She Wrote Law & Order Gunsmoke Dallas
Note: End each output file with a newline and file1.txt is available to download.