From 7476a256778d89af309e8f931125e32b5649289a Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:38:10 +0530 Subject: [PATCH 1/4] Update instructions.md --- exercises/practice/hello-world/.docs/instructions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/practice/hello-world/.docs/instructions.md b/exercises/practice/hello-world/.docs/instructions.md index c9570e48a97..66954599732 100644 --- a/exercises/practice/hello-world/.docs/instructions.md +++ b/exercises/practice/hello-world/.docs/instructions.md @@ -9,7 +9,7 @@ The objectives are simple: - Modify the provided code so that it produces the string "Hello, World!". - Run the test suite and make sure that it succeeds. -- Submit your solution and check it at the website. +- Submit your solution and check it on the website. If everything goes well, you will be ready to fetch your first real exercise. From c01eb893fad0f7baf9874a2d47d611ce0b5d199b Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:39:20 +0530 Subject: [PATCH 2/4] Update hints.md --- exercises/concept/guidos-gorgeous-lasagna/.docs/hints.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/concept/guidos-gorgeous-lasagna/.docs/hints.md b/exercises/concept/guidos-gorgeous-lasagna/.docs/hints.md index 90065248520..2b14952cff8 100644 --- a/exercises/concept/guidos-gorgeous-lasagna/.docs/hints.md +++ b/exercises/concept/guidos-gorgeous-lasagna/.docs/hints.md @@ -12,7 +12,7 @@ - You need to [name][naming] a constant, and [assign][assignment] it an [integer][numbers] value. -## 2. Calculate remaining bake time in minutes +## 2. Calculate the remaining bake time in minutes - You need to define a [function][defining functions] with a single parameter representing the time elapsed so far. - Use the [mathematical operator for subtraction][numbers] to subtract values. From 06ce85ac8426c1e515cc688aca7aa2ee77134deb Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:39:58 +0530 Subject: [PATCH 3/4] Update instructions.md --- .../concept/guidos-gorgeous-lasagna/.docs/instructions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exercises/concept/guidos-gorgeous-lasagna/.docs/instructions.md b/exercises/concept/guidos-gorgeous-lasagna/.docs/instructions.md index 2d61cec837d..5968a004e2d 100644 --- a/exercises/concept/guidos-gorgeous-lasagna/.docs/instructions.md +++ b/exercises/concept/guidos-gorgeous-lasagna/.docs/instructions.md @@ -1,6 +1,6 @@ # Instructions -You're going to write some code to help you cook a gorgeous lasagna from your favorite cookbook. +You're going to write some code to help you cook a gorgeous lasagna from your favourite cookbook. You have five tasks, all related to cooking your recipe. @@ -15,7 +15,7 @@ According to your cookbook, the Lasagna should be in the oven for 40 minutes: 40 ``` -## 2. Calculate remaining bake time in minutes +## 2. Calculate the remaining bake time in minutes Implement the `bake_time_remaining()` function that takes the actual minutes the lasagna has been in the oven as an argument and returns how many minutes the lasagna still needs to bake based on the `EXPECTED_BAKE_TIME`. @@ -39,7 +39,7 @@ Assume each layer takes 2 minutes to prepare. ## 4. Calculate total elapsed cooking time (prep + bake) in minutes 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_). -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. +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. ```python >>> from lasagna import elapsed_time_in_minutes From 8fd05211a5a5472ad6d64e23fc497cae5858b06e Mon Sep 17 00:00:00 2001 From: Thomas antony <77287334+thomasantony12@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:42:21 +0530 Subject: [PATCH 4/4] Update introduction.md --- .../guidos-gorgeous-lasagna/.docs/introduction.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md b/exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md index 6c6812f6d89..864ad40440b 100644 --- a/exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md +++ b/exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md @@ -91,7 +91,7 @@ IndentationError: unindent does not match any outer indentation level Functions _explicitly_ return a value or object via the [`return`][return] keyword: ```python -# Function definition on first line, explicit return used on final line. +# Function definition on the first line, explicit return used on the final line. def add_two_numbers(number_one, number_two): return number_one + number_two @@ -101,7 +101,7 @@ def add_two_numbers(number_one, number_two): 7 # Assigning the function call to a variable and printing -# the variable will also return the value. +# The variable will also return the value. >>> sum_with_return = add_two_numbers(5, 6) >>> print(sum_with_return) 7 @@ -132,7 +132,7 @@ None # Assigning the function call to a variable and printing -# the variable will also show None. +# The variable will also show None. >>> sum_without_return = add_two_numbers(5, 6) >>> print(sum_without_return) None @@ -153,7 +153,7 @@ Dot (`.`) notation is used for calling functions defined inside a class or modul 27 -# A mis-match between the number of parameters and the number of arguments will raise an error. +# A mismatch between the number of parameters and the number of arguments will raise an error. >>> number_to_the_power_of(4,) ... Traceback (most recent call last): @@ -211,13 +211,13 @@ Docstrings can also function as [lightweight unit tests][doctests], which will b ```python -# An example on a user-defined function. +# An example of a user-defined function. >>> def number_to_the_power_of(number_one, number_two): """Raise a number to an arbitrary power. :param number_one: int the base number. :param number_two: int the power to raise the base number to. - :return: int - number raised to power of second number + :return: int - number raised to the power of the second number Takes number_one and raises it to the power of number_two, returning the result. """ @@ -231,7 +231,7 @@ Raise a number to an arbitrary power. :param number_one: int the base number. :param number_two: int the power to raise the base number to. - :return: int - number raised to power of second number + :return: int - number raised to the power of the second number Takes number_one and raises it to the power of number_two, returning the result. ```