isnumeric()

my_str.isnumeric()
Returns True if all chars in a string are numeric , otherwise rturns False
my_str='abc_45'
print(my_str.isnumeric())      # Output is False 

my_str='1234#56'
print(my_str.isnumeric())      # Output is False

my_str='12.34'
print(my_str.isnumeric())      # Output is False

my_str='1234'              
print(my_str.isnumeric())      # Output is True


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