My task is to define a function weekdays(weekday) that returns a list of weekdays, starting with the given weekday. It should work like this:
weekdays(weekday)
Here's more what you want:
def weekdays(weekday): days = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] index = days.index(weekday) return (days + days)[index:index+7]