note this is not very efficient way of doing things since we have to scan through most of the list binary search would be more efficientbut the above approach still runs almost instantly even for large files example find the longest word that can be made using only the letters abcdand largest for word in wordlistfor in wordif not in 'abcde 'break elseif len(word)>largestlargest=len(wordlargest_word=word print(largest_wordthe way this program works is for every word in the wordlistwe use for/else loop (section to scan through the word looking checking each character to see if it is an abcdor if any letter isn' one of thesethen we break out of the loop and move on to the next word on the other handif we get all the way through the loopthen we go to else block in that blockwe use modification of the technique from section for finding maximum exercises you are given file called class_scores txtwhere each line of the file contains oneword username and test score separated by spaceslike belowgwashington jadams write code that scans through the fileadds points to each test scoreand outputs the usernames and new test scores to new filescores txt you are given file called grades txtwhere each line of the file contains one-word student username and three test scores separated by spaceslike belowgwashington jadams write code that scans through the file and determines how many students passed all three tests you are given file called logfile txt that lists log-on and log-off times for users of system typical line of the file looks like thisvan rossum : :