Date template

Report a typo

You have a variable named template: set its value in such a way that it would match the predefined variable good_string entirely and would not match the predefined variable bad_string.

Write a program in Python 3
import re

# birthday of Python 3
good_string = '03.12.2008'
bad_string = '03-12-2008'
template = ''
___

Create a free account to access the full topic