def days_as_str(days):
    ' Return a short string version of days '
    if ((- 7) <= days <= 7):
        return '{:d}d'.format(days)
    return '{:d}w'.format(int(round((days / 7.0))))
Return a short string version of days
def days_as_str(days):
    '  '
    if ((- 7) <= days <= 7):
        return '{:d}d'.format(days)
    return '{:d}w'.format(int(round((days / 7.0))))