Project

Write a function called longest which will take a string of space separated words and will return the longest one.
def longest(word):
word = “This is Andela”
return (‘Andela’)
for letter in word:
total += score[str(letter.lower())]
return (‘Andela’)

def longest(word):
word = “This”
return “This”
for letter in word:
total += score[letter]
return (“This”)