My Code:
pattern = r"(?P<First_Year>[1-2][0-9]{3})/?(?P<Second_Year>[0-9]{2})?"
Replace this line with your code
What I expected to happen:
What actually happened:
Replace this line with the output/error
what is the meaning of ?P<First_Year> ? I don’t understand why we need it to solve the problem ?