What is the isdigit() equivalent in Python

1 Answer

0 votes
s = "python4c++453java23988rust821"

size = len(s)
for i in range(size):
    if (s[i].isdigit()):
        print(s[i])




'''
run:

4
4
5
3
2
3
9
8
8
8
2
1

'''

 



answered Jun 1, 2023 by avibootz

Related questions

3 answers 208 views
1 answer 180 views
180 views asked Aug 7, 2021 by avibootz
1 answer 229 views
1 answer 175 views
4 answers 335 views
6 answers 493 views
1 answer 231 views
...