In Language Reference, Chapter 2.4.3. Formatted string literals,
https://docs.python.org/3/reference/lexical_analysis.html#f-strings
Instead of
today
= datetime(year=2017, month=1, day=27)
should be
today = datetime.date(year=2017, month=1, day=27)




Bogdan Maties