#define day_names = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
define day_names = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"]
def get_current_day(day_n):
global day_name, day_names
# for dictionary conversion to work I had to redefine the day_names to start with Sunday
# so that the day_counter/day_n would display the correct day
if type(day_names) != dict:
day_names = dict(list(enumerate(day_names)))
if type(day_names) == dict:
day_name = [v for k,v in day_names.items() if k == day_n % 7][0]
return str(day_n) + ": " + day_name