In this exercise you're going to document the code you just wrote to help you cook a brilliant lasagna. You are unlikely to look at this lasagna-related code ever again, but documenting code is really helpful if you want any larger project to be understandable to others (or to yourself)!
To document your code, write a "docstring" for each of the three functions. Here's how to do it:
You're provided with the exemplar solution of the previous exercise. You may also choose your own solution to that exercise as a starting point if you prefer.
The first function you wrote was preptime, which calculates how long it takes to prepare the lasagna.
The second function you wrote was remaining_time, which calculates how long it is until the lasagna is ready.
The third function you wrote was total_working_time, which calculates how long it takes to make the lasagna.
In this exercise you're going to document the code you just wrote to help you cook a brilliant lasagna. You are unlikely to look at this lasagna-related code ever again, but documenting code is really helpful if you want any larger project to be understandable to others (or to yourself)!
To document your code, write a "docstring" for each of the three functions. Here's how to do it:
You're provided with the exemplar solution of the previous exercise. You may also choose your own solution to that exercise as a starting point if you prefer.
The first function you wrote was preptime, which calculates how long it takes to prepare the lasagna.
The second function you wrote was remaining_time, which calculates how long it is until the lasagna is ready.
The third function you wrote was total_working_time, which calculates how long it takes to make the lasagna.