Python String – isdigit() method

It is a method in python that checks if the given string has all the characters as digit in it. If the string satisfies the condition it returns True else returns False. Syntax: string.isdigit() Example 1: s = “123” x = s.isdigit() print(x) Output: True Explanation: Here the given string has all the characters as […]

Python String – isdigit() method Read More »