Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Keep testing match solution in Clear category for Birthday Party by oduvan
import datetime
def birthday_party(birthday: datetime.date) -> datetime.date:
# your code here
match birthday.weekday():
case 5 | 6:
return birthday
case weekday:
return birthday + datetime.timedelta(days=5-weekday)
Nov. 4, 2021
Comments: