def get_weekday(d1, d2):
''' (int, int) -> int
The first parameter indicates the current day of the week, and is in the
range 1-7. The second parameter indicates a number of days from the current
day, and that could be any integer, including a negative integer. Return
which day of the week it will be that many days from the current day.
>>> get_weekday(0,14)
7
>>> get_weekday(0,15)
1
'''
weekday = (d1+d2) % 7
if weekday == 0:
weekday = 7
return weekday
if ステートメントを使用せずにこれを解決するにはどうすればよいですか?
ちなみに、日曜日は1、月曜日は2、.... 土曜日は7