isalnum()

my_str.isalnum())
Checks for alphanumeric characters in a string. Returns True if only number and alphabets are present and returns False if any thing other than alphanumeric characters are present.
my_str='plus2net'
print(my_str.isalnum())      # Output is True

my_str='Welcome to plus2net'
print(my_str.isalnum())      # Output is False (presence of Space)


All String methods



plus2net.com



Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2020 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer