human
Give me a the Python code you requested given the following:
Complete the below
def is_ascii(word):

    ''''True if a word is only ascii chars'
    '''
assistant
#Here is the Python code you requested.
    def onlyascii(char):
        if (ord(char) > 127):
            return ''
        else:
            return char
    for c in word:
        if (not onlyascii(c)):
            return False
    return True