# Write a Python program to Last business day of every month in year # Python3 code to demonstrate working of# Last weekday of every month in year# Using loop + max() + calendar.monthcalendarimport calendar  # initializing yearyear = 1997  # printing Yearprint("The original year : " + str(year))  # initializing weekday weekdy = 5  # iterating for all monthsres = []for month in range(1, 13):          # max gets last friday of each month of 1997    res.append(str(max(week[weekdy]                        for week in calendar.monthcalendar(year, month))) +               "/" + str(month)+ "/" + str(year))  # printing print("Last weekdays of year : " + str(res))