WeCodeAcademy
❮ str.format()str.zfill() ❯

str.isdigit()

Whether all characters are digits.

Group: String

Syntax

s.isdigit()

Example

Examplepython
Open in editor »

← All of Python Reference