RosettaCodeData/Task/Determine-if-a-string-is-nu.../Python/determine-if-a-string-is-nu...

4 lines
40 B
Python

s = '123'
if s.isdigit():
# numeric