ID EN
Built-in Types

isalnum

Python 3.11

Return True if all characters in the string are alphanumeric and there is at least one character, False otherwise. A character c is alphanumeric if one of the following returns True: c.isalpha(), c.isdecimal(), c.isdigit(), or c.isnumeric().

Syntax

PYTHON
str.isalnum()