Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print only numbers from string python

a='a345g5'



for i in a:
    if int(i.isnumeric()):
        print(i,end=' ')
 
PREVIOUS NEXT
Tagged: #print #numbers #string #python
ADD COMMENT
Topic
Name
9+6 =