<reponame>Dmendoza3/Phyton
def longestWord(sentence):
    wordArray = sentence.split(" ")
    longest = ""
    for word in wordArray:
        if(len(word) >= len(longest)):
            longest = word
    return longest

print(longestWord("Hello World"))
def longestWord(sentence):
    wordArray = sentence.split(" ")
    longest = ""
    for word in wordArray:
        if(len(word) >= len(longest)):
            longest = word
    return longest

print(longestWord("Hello World"))