When I run these methods
s.isdigit()
s.isnumeric()
s.isdecimal()
I always got as output or all True, or all False for each value of s (whic
By definition, isdecimal() ⊆ isdigit() ⊆ isnumeric(). That is, if a string is decimal, then it'll also be digit and numeric.
Therefore, given a string s and test it with those three methods, there'll only be 4 types of results.
+-------------+-----------+-------------+----------------------------------+
| isdecimal() | isdigit() | isnumeric() | Example |
+-------------+-----------+-------------+----------------------------------+
| True | True | True | "038", "੦੩੮", "038" |
| False | True | True | "⁰³⁸", "