Create a function that takes in a string and returns an integer made from the digits found in the string. For example, given “0fg3y5!78hw578!”, return 3578578.
Run the tests with
$ python3 -m pytest get_digits.py
Run tests with print statements with
$ python3 -m pytest -s get_digits.py
Solve this without ever appending or concatenating strings. (Solve this by building the number as an integer, instead of building the number as a string).
Solve this without using isnumeric
.