def get_day(days_count, current_day):
week_days = ['sun', 'mon', 'tue', 'wed', 'thur', 'fri', 'sat']
expected_day_index = week_days.index(current_day)
while days_count != 0:
expected_day_index += 1
days_count -= 1
if expected_day_index > 6:
expected_day_index = 0
return week_days[expected_day_index]
Comments
Yes, it is engine bug, will be fixed soon.
if expected_day_index > 6: expected_day_index = 0 i am not getting wat is that gt in if condition
Leave a comment