def is_word_guessed(word, past_guesses):
    """Returns whether the word is guessed or not

    The function will return True if the word is fully guessed, otherwise, will
    return false. For example, is_word_guessed('hello',['h', 'e', 'a', 'o',
    'l']) should return True while is_word_guessed('hello', ['e', 't', 'a'])
    should return False.

    Args:
        word: a string
        past_guesses: a list of strings

    Returns:
        bool: True if word was guessed else false
    """
    result = True
    for element in word:
        if element not in past_guesses:
            result = False
    return result