Skip to content

Commit 52a5318

Browse files
MetallifaxBethanyG
authored andcommitted
[Lasagna]: Inserted dashes in all docstrings
Dashes added to both exemplar and stub files Removed a space on line 43 in exemplar.py Consistency change on lines 45-47 -- column width ~90 compared to 112
1 parent a71ce63 commit 52a5318

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

exercises/concept/guidos-gorgeous-lasagna/.meta/exemplar.py

+10-9
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
def bake_time_remaining(elapsed_bake_time):
1212
"""Calculate the bake time remaining.
1313
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'
1616
1717
Function that takes the actual minutes the lasagna has been in the oven as
1818
an argument and returns how many minutes the lasagna still needs to bake
@@ -25,8 +25,8 @@ def bake_time_remaining(elapsed_bake_time):
2525
def preparation_time_in_minutes(number_of_layers):
2626
"""Calculate the preparation time.
2727
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
3030
3131
This function takes an integer representing the number of layers added to the dish,
3232
calculating preparation time using a time of 2 minutes per layer added.
@@ -38,12 +38,13 @@ def preparation_time_in_minutes(number_of_layers):
3838
def elapsed_time_in_minutes(number_of_layers, elapsed_bake_time):
3939
"""Calculate the elapsed time.
4040
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
4444
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.
4748
"""
4849

4950
return preparation_time_in_minutes(number_of_layers) + elapsed_bake_time

exercises/concept/guidos-gorgeous-lasagna/lasagna.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
def bake_time_remaining():
1313
"""Calculate the bake time remaining.
1414
15-
:param elapsed_bake_time: int baking time already elapsed.
16-
:return: int remaining bake time derived from 'EXPECTED_BAKE_TIME'.
15+
:param elapsed_bake_time: int - baking time already elapsed.
16+
:return: int - remaining bake time derived from 'EXPECTED_BAKE_TIME'.
1717
1818
Function that takes the actual minutes the lasagna has been in the oven as
1919
an argument and returns how many minutes the lasagna still needs to bake

0 commit comments

Comments
 (0)