Workout #21: Longest word per file
Oct 7, 2021
Write two functions. find_longest_word takes a filename as an argument and returns the longest word found in the file. The second function, find_all_longest_words, takes a directory name and returns a dict in which the keys are filenames and the values are the longest words from each file.
TRY IT YOURSELF
ANSWER
https://colab.research.google.com/drive/11hNrmqY2ifn5cxzOdXek63UtMgt3156n?usp=sharing