Medium
Double Every Number
Replace every whole number in the text by double its value, using
re.sub with a function as the replacement.Input
One line.
Output
One line.
Sample 1
Input
I have 3 cats and 12 fish
Output
I have 6 cats and 24 fish
Sample 2
Input
none
Output
none
Output appears here