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)
Hmm, you are currently only searching for the given weekday and set as result :) You can use the slice ability in python list to do this:
result = days[days.index(weekday):] + days[:days.index(weekdays)]