python check string is alphanumeric only code example Example: how to check if a string is composed only of alphanumeric in python String.isalnum()