Name
isdigit
Synopsis
s
.isdigit( )
Returns True
when
len(
s
)
is greater than 0
and all characters in
s
are decimal digits. When
s
is empty, or when at least one character
of s
is not a digit,
isdigit
returns False
.
Get Python in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.