In this sample program I'm naming the days 0 through 6 where day 0 is Sunday and day 6 is Saturday. I'm wondering if I can use a lambda expression here for starting day and length of stay and still return the number of the day of the week I would return on. I'm having trouble understanding how to use lambda expressions in a simple example like this.
starting_day = 3
length_of_stay = 10
end_day = (starting_day + length_of_stay) % 7
print("You will come back on day: ", end_day)
print("You will come back on day: ", (starting_day + length_of_stay) % 7), but it would be silly to use a lambdaprint("You will come back on day: ", (lambda start, length: (start + length) % 7)(starting_day, length_of_stay)).