Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for I Love Python! by popomin
import re
def i_love_python(text="I love Python!"):
return re.sub(r"(?i)(?<=I love )[\w'!?]+","Python!",text)
Dec. 19, 2017
Comments: