The method isalnum() checks whether the string consists of alphanumeric characters.
NA
str.isalnum()
#!/usr/bin/python str = "this2009"; # No space in this string print str.isalnum() str = "this is string example....wow!!!"; print str.isalnum()
When we run above program, it produces following result:
True False