Python String isalnum() Method
Python String isalnum() method checks whether all the characters in a given string are alphanumeric or not. Alphanumeric means a character that is either a letter or a number.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning - Basic Level Course
isalnum() method takes no parameters
- True: If all the characters are alphanumeric
- False: If one or more characters are not alphanumeric
Example 1: Working of isalnum()