def isconsonant(char):
    """isconsonant(string) -> bool

    Returns true if string is a consonant.
    """
    if len(char) == 1 and char in 'ckgszjtdhfpbmyrwxnv':
        return True
    return False
