human
Complete this python program:
def is_ascii(word):
assistant
#Here is the Python code you requested.

    """True if a word is only ascii chars
    """
    def onlyascii(char):
        if (ord(char) > 127):
            return ''
        else:
            return char
    for c in word:
        if (not onlyascii(c)):
            return False
    return True