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 163 views
1 answer 140 views
140 views asked Aug 7, 2021 by avibootz
1 answer 129 views
1 answer 131 views
4 answers 283 views
6 answers 338 views
1 answer 194 views
...