1 2 3
import datetime print('Current year: ', datetime.date.today().strftime("%Y")) # [inconsistent-quotes]