I am doing a Python course and am stuck on this question:
"Write a function called length_of_longest_word that accepts one list variable called word_list as an argument and returns the length of the longest word in that list."
Below is what I have written, appreciate your feedback!
def length_of_longest_word(word_list):
max_length = 0
for max_length in word_list:
max_length = max(max_length, length_of_longest_word)
return max_length