1a.) Given a file called ‘highest_scores.txt’ containing the…
Question Answered step-by-step 1a.) Given a file called ‘highest_scores.txt’ containing the… 1a.)Given a file called ‘highest_scores.txt’ containing the following text:Akshay Kumar 15Deepika Padukone 11Yang Mi 9Jet Li 8Fattah Amin 7Write a program that reads the contents of the file into two lists called names (storing strings) and scores (storing integer values). For example, after your program has finished, your program should have two lists as follows:names = [‘Akshay Kumar’, ‘Deepika Padukone’, ‘Yang Mi’, ‘Jet Li’, ‘Fattah Amin’]scores = [15, 11, 9, 8, 7]1b.)Given the two lists names and scores created in part a), write a program to write the contents of each list to a file called highest_scores.txt.For example, after your program has finished, the contents of the file must look as follows:Akshay Kumar 15Deepika Padukone 11Yang Mi 9Jet Li 8Fattah Amin 7 Computer Science Engineering & Technology Python Programming COMP 1039 Share QuestionEmailCopy link Comments (0)


