Assuming that students graduate on-time in four years, Use the Design Recipe to define a function matriculation_year which should consume the year of graduation (as an int), and which returns the year the student must start school in order to graduate in the given year. Include a Docstring.
I'm doing this on Python.
def matriculation_year(year):
"""
This function calculates the year student must start school in order to graduate in the given year
:param year: Year of graduation
:return: the year the student must start school in order to graduate in the given year
"""
return year - 4


Assuming that students graduate on-time in four years, Use the Design Recipe to define a function...