11
11
def bake_time_remaining (elapsed_bake_time ):
12
12
"""Calculate the bake time remaining.
13
13
14
- :param elapsed_bake_time: int baking time already elapsed
15
- :return: int remaining bake time (in minutes) derived from 'EXPECTED_BAKE_TIME'
14
+ :param elapsed_bake_time: int - baking time already elapsed
15
+ :return: int - remaining bake time (in minutes) derived from 'EXPECTED_BAKE_TIME'
16
16
17
17
Function that takes the actual minutes the lasagna has been in the oven as
18
18
an argument and returns how many minutes the lasagna still needs to bake
@@ -25,8 +25,8 @@ def bake_time_remaining(elapsed_bake_time):
25
25
def preparation_time_in_minutes (number_of_layers ):
26
26
"""Calculate the preparation time.
27
27
28
- :param number_of_layers: int the number of lasagna layers made
29
- :return: int amount of prep time (in minutes), based on 2 minutes per layer added
28
+ :param number_of_layers: int - the number of lasagna layers made
29
+ :return: int - amount of prep time (in minutes), based on 2 minutes per layer added
30
30
31
31
This function takes an integer representing the number of layers added to the dish,
32
32
calculating preparation time using a time of 2 minutes per layer added.
@@ -38,12 +38,13 @@ def preparation_time_in_minutes(number_of_layers):
38
38
def elapsed_time_in_minutes (number_of_layers , elapsed_bake_time ):
39
39
"""Calculate the elapsed time.
40
40
41
- :param number_of_layers: int the number of layers in the lasagna
42
- :param elapsed_bake_time: int elapsed cooking time
43
- :return: int total time elapsed (in in minutes) preparing and cooking
41
+ :param number_of_layers: int - the number of layers in the lasagna
42
+ :param elapsed_bake_time: int - elapsed cooking time
43
+ :return: int - total time elapsed (in in minutes) preparing and cooking
44
44
45
- This function takes two integers representing the number of lasagna layers and the time already spent baking
46
- and calculates the total elapsed minutes spent cooking the lasagna.
45
+ This function takes two integers representing the number of lasagna layers and the
46
+ time already spent baking and calculates the total elapsed minutes spent cooking the
47
+ lasagna.
47
48
"""
48
49
49
50
return preparation_time_in_minutes (number_of_layers ) + elapsed_bake_time
0 commit comments