Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

method for format age in python

def format_age(s):
    chars = list(s)  # list of characters
    digit_chars = [c for c in chars if c.isdigit()]
    return int("".join(digit_chars))
 
PREVIOUS NEXT
Tagged: #method #format #age #python
ADD COMMENT
Topic
Name
9+2 =