You have a variable named template: set its value in such a way that it would match the predefined variable good_string entirely and not match the predefined variable bad_string.
Escaping in regexps
Write the template
Report a typo
Write a program in Python 3
import re
good_string = 'You learn Python 3?..'
bad_string = 'You learn Python 3?!.'
template = ''
___
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.