char.ispunct() returns true, if the character is printable but neither white space nor alphanumeric.
isalnum, isprint, isspace