without using IF statement
<pre><code>def get_weekday(d1, d2):
    ''' (int, int) -&gt; 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.
    &gt;&gt;&gt; get_weekday(0,14)
    7
    &gt;&gt;&gt; get_weekday(0,15)
    1
    '''
    weekday = (d1+d2) % 7
    if weekday == 0:
        weekday = 7
    return weekday
</code></pre>

<p>how can I solve this without using the if statement?</p>

<p>by the way, sunday is 1, monday is 2,.... sat is 7</p>
