Articles → Python → Isdigit Function In PythonIsdigit Function In PythonIn this article, we will discuss about isdigit function in pythonPurpose isdigit returns true if all the characters in the string are digits else false.Example digit = "12345" nondigit = "test1" print("Is Digit:", digit.isdigit()) print("Is Digit:", nondigit.isdigit())Output Posted By - Karan Gupta Posted On - Friday, February 22, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
digit = "12345" nondigit = "test1" print("Is Digit:", digit.isdigit()) print("Is Digit:", nondigit.isdigit())
Query/Feedback