import string


def isalphanum(word):
    """
    This function returns true if a word contains letters or digits
    :param word: A string token to check
    :return: True if the word contains letters or digits
    """
    for char in word:
        if char not in string.ascii_letters and char not in string.digits:
            return False
    return True