def is_part_of_word(word_fragment, wordlist):
    """Returns True if word_fragment is the beginning of a word in wordlist.
    Returns False otherwise. Assumes word_fragment is a string."""
    for word in wordlist:
        is_part_of_list = word_fragment == word[:len(word_fragment)]
        if is_part_of_list == True:
            return True
    return False