?
What is the output of the following code:
What is the output of the following code:
import re
result = re.sub(r'd+', 'number', 'There are 5 apples and 3 oranges.')
print(result)
result = re.sub(r'd+', 'number', 'There are 5 apples and 3 oranges.')
print(result)
Join the Discussion
Login to post a comment or share your explanation.
Login