isalpha
isalnum
encode
Returns True if all characters are alphanumeric.
str.isalnum()
Enter values below to update the example in real time.
print
print("hello123".isalnum()) # True print("hello!".isalnum()) # False