What is the output of the following code:
import re
result = re.sub(r's', '-', 'This is a test.')
print(result)
result = re.sub(r's', '-', 'This is a test.')
print(result)
What is the output of the following code:import re Correct Answer This-is-a-test.
result = re.sub(r's', '-', 'This is a test.')
print(result)
মোঃ আরিফুল ইসলাম
Feb 20, 2025