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())



Output


Picture showing the output of the isdigit function in python



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

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250