Extract only digits from a string. Example: "a1b2c3" => "123"
Implement this function:
def extract_digits(s: str) -> str:
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: s.
Input
'a1b2c3'
Output
'123'