Articles → Python → isdigit function in python

isdigit function in python






Purpose





Example


digit = "12345"
nondigit = "test1"

print("Is Digit:", digit.isdigit())
print("Is Digit:", nondigit.isdigit())





Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, February 22, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250