I have two arrays:
months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
current_month = datetime.date.today().month
last_months = [(current_month - i - 1) % len(months) + 1 for i in range(7)]
I want to exchange last_months
array numbers to strings from months
.
How can i do that ?
Thank for help in advance.