The built-in library function isalnum() tests whether its argument is an alphanumeric character (either a letter A-Z or a digit 0-9). It returns true if the character is either alphabetic or numeric. This is different from isalpha() which only checks for alphabetic characters, or isdigit() which only checks for numeric characters.