Important Notice:

Course Content
The Calendar Module
Library Function/Predefined Functions
0/4
Sys Module
Library Function/Predefined Functions
0/2
OS Module
Library Function/Predefined Functions
0/2
Functions in Python (Chapter-10) M3-R5
About Lesson

isalnum():-

            The isalnum() method returns True if all the characters are alphanumeric, meaning alphabet letter (a-z) and numbers (0-9). Example of characters that are not alphanumeric: (space)!#%&? etc.

Syntax:-                       string.isalnum()

txt = “Company12”

x = txt.isalnum()

print(x)

Output

True

txt = “Company 12”

x = txt.isalnum()

print(x)

Output

False

error: Content is protected !!