human
Python - find digits in a string
assistant
Here is some code to get digits in string `my_string`

"""""".join(c for c in my_string if c.isdigit())

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.