The Python Oracle

What's the difference between str.isdigit, isnumeric and isdecimal in python?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Hypnotic Orient Looping

--

Chapters
00:00 Question
00:37 Accepted answer (Score 112)
01:19 Answer 2 (Score 166)
03:47 Answer 3 (Score 44)
05:44 Answer 4 (Score 1)
06:37 Thank you

--

Full question
https://stackoverflow.com/questions/4489...

Accepted answer links:
[here]: https://docs.python.org/3/library/stdtyp...

Answer 3 links:
[str.isdigit]: https://docs.python.org/3/library/stdtyp...
[str.isnumeric]: https://docs.python.org/3/library/stdtyp...
[str.isdecimal]: https://docs.python.org/3/library/stdtyp...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #string #python3x

#avk47