Take a look at the piece of code below. It contains a template. Finish the code by reading a string from the input, calling the match() function and printing the length of the matching substring. If no match is found, output 0.
Match object and flags
Match length
Report a typo
Write a program in Python 3
import re
template = r'are you ready??.?.?'
___
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.