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 202 views
1 answer 173 views
173 views asked Aug 7, 2021 by avibootz
1 answer 211 views
1 answer 165 views
4 answers 321 views
6 answers 464 views
1 answer 224 views
...