Python String isalnum() method

The string.isalnum () method in Python returns a boolean value true if all characters in the string are alphanumeric else for any other value it returns false.

Syntax

Parameter

NA

Return

This method returns a Boolean value True if all the given characters are alphanumeric.

Example 1

Output

Example 2

Output

Example 3

Output

Pin It on Pinterest

Share This