Skip to content

Commit d15fbc6

Browse files
committed
Cleaned up the instructions a bit more.
1 parent 306dfe2 commit d15fbc6

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

exercises/concept/guidos-gorgeous-lasagna/.docs/instructions.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Implement the `bake_time_remaining()` function that takes the actual minutes the
2727

2828
## 3. Calculate preparation time in minutes
2929

30-
Implement the `preparation_time_in_minutes()` function that takes the number of layers you want to add to the lasagna as an argument and returns how many minutes you would spend making them.
30+
Implement the `preparation_time_in_minutes(number_of_layers)` function that takes the number of layers you want to add to the lasagna as an argument and returns how many minutes you would spend making them.
3131
Assume each layer takes 2 minutes to prepare.
3232

3333
```python
@@ -38,7 +38,7 @@ Assume each layer takes 2 minutes to prepare.
3838

3939
## 4. Calculate total elapsed cooking time (prep + bake) in minutes
4040

41-
Implement the `elapsed_time_in_minutes()` function that has two parameters: `number_of_layers` (_the number of layers added to the lasagna_) and `elapsed_bake_time` (_the number of minutes the lasagna has been baking in the oven_).
41+
Implement the `elapsed_time_in_minutes(number_of_layers, elapsed_bake_time)` function that has two parameters: `number_of_layers` (_the number of layers added to the lasagna_) and `elapsed_bake_time` (_the number of minutes the lasagna has been baking in the oven_).
4242
This function should return the total number of minutes you've been cooking, or the sum of your preparation time and the time the lasagna has already spent baking in the oven.
4343

4444
```python
@@ -49,14 +49,18 @@ This function should return the total number of minutes you've been cooking, or
4949

5050
## 5. Update the recipe with notes
5151

52-
Go back through the recipe, adding notes in the form of function docstrings.
52+
Go back through the recipe, adding "notes" in the form of function docstrings.
5353

5454
```python
5555
def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):
56-
"""
57-
Return elapsed cooking time.
56+
"""Calculate the elapsed cooking time.
57+
58+
:param number_of_layers: int - the number of layers in the lasagna.
59+
:param elapsed_bake_time: int - elapsed cooking time.
60+
:return: int - total time elapsed (in in minutes) preparing and cooking.
5861
59-
This function takes two numbers representing the number of layers & the time already spent
60-
baking and calculates the total elapsed minutes spent cooking the lasagna.
62+
This function takes two integers representing the number of lasagna layers and the
63+
time already spent baking and calculates the total elapsed minutes spent cooking the
64+
lasagna.
6165
"""
6266
```

0 commit comments

Comments
 (0)