Python String – isalnum() method

It is a method in python string that checks if all the characters in the given string are either alphabets (a-z, A-Z) or numbers (0-9) or both. It returns True if satisfies the condition else returns False. Syntax: string.isalnum() Note: space is considered a special character in python. Example 1: s = “CodeWindow” x = […]

Python String – isalnum() method Read More »