3-1-4-9. Quiz: Documentation

Quiz: Write a Docstring

Write a docstring for the readable_timedelta function you defined earlier! Remember the way you write your docstrings is pretty flexible! Look through Python’s docstring conventions here and check out this Stack Overflow page for some inspiration!



def readable_timedelta(days):
    # insert your docstring here

    weeks = days // 7
    remainder = days
    return "{} week(s) and {} day(s)".format(weeks, remainder)