def is_letter_or_number(char):
 cat = category(char)
 return (cat.startswith('L') or cat.startswith('N'))

def is_letter_or_number ( char ) : cat = category ( char ) return ( cat . startswith ( 'L' ) or cat . startswith ( 'N' ) )
returns whether the specified unicode character is a letter or a number .