Define the function matched with two arguments, template and string. If string matches template return True, otherwise return False.
Regexps in Python
Match or not match?
Report a typo
Write a program in Python 3
import re
def matched(template, string):
...
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.