Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,104 questions

40,777 answers

573 users

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 53 views
1 answer 60 views
60 views asked Aug 7, 2021 by avibootz
1 answer 27 views
1 answer 59 views
4 answers 120 views
...