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 210 views
1 answer 186 views
186 views asked Aug 7, 2021 by avibootz
1 answer 233 views
1 answer 176 views
4 answers 343 views
6 answers 510 views
1 answer 234 views
...