I have several dictionaries for each day of the week, Sunday ["a", "b", "c"]
, Monday ["d", "f", "g"]
, and so on, they are located in another script (xscript.py), and I would want to print them out depending on the day of the week I'm currently on, something like this:
import datetime
import xscript
def print_daily_list():
day_of_week = datetime.datetime.today().weekday()
print(xscript.day_of_week)
I wouldn't want to create a bunch of if
statements to replace day_of_week
with "Sunday" or "Monday" depending on the day.