From b26e58c5a38fdf12bd875ced17565358f984dc1d Mon Sep 17 00:00:00 2001 From: Rodolfo Pacheco <124650306+rvpacheco@users.noreply.github.com> Date: Thu, 25 Apr 2024 00:37:32 +0000 Subject: [PATCH 1/2] readme's arreglado --- exercises/025-print-formula/README.es.md | 2 +- exercises/025-print-formula/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/025-print-formula/README.es.md b/exercises/025-print-formula/README.es.md index 30b86aed..f72bc385 100644 --- a/exercises/025-print-formula/README.es.md +++ b/exercises/025-print-formula/README.es.md @@ -5,7 +5,7 @@ 1. Escribe una función llamada `print_formula()`, con un parámetro que calcule e imprima el valor según la fórmula dada. ```text -Q = Square root of (2 * c * d) / h +Q = Square root of (2 * c * d / h) ``` *A continuación encontrarás los valores fijos de `c` y `h`:* diff --git a/exercises/025-print-formula/README.md b/exercises/025-print-formula/README.md index cf0cbf95..7295f08e 100644 --- a/exercises/025-print-formula/README.md +++ b/exercises/025-print-formula/README.md @@ -5,7 +5,7 @@ 1. Write a function `print_formula()`, with one parameter that calculates and prints the value according to the given formula: ```text -Q = Square root of (2 * c * d) / h +Q = Square root of (2 * c * d / h) ``` *Following are the fixed values of `c` and `h`:* From 767efd75d956f3d08c06a3165a9f1fc5f8697e20 Mon Sep 17 00:00:00 2001 From: Rodolfo Pacheco <124650306+rvpacheco@users.noreply.github.com> Date: Thu, 25 Apr 2024 00:49:25 +0000 Subject: [PATCH 2/2] arreglado solution --- exercises/025-print-formula/solution.hide.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/exercises/025-print-formula/solution.hide.py b/exercises/025-print-formula/solution.hide.py index 3ddcff9c..1ba2d747 100644 --- a/exercises/025-print-formula/solution.hide.py +++ b/exercises/025-print-formula/solution.hide.py @@ -2,6 +2,7 @@ import math def print_formula(d): - return round(math.sqrt(2 * 50 * d / 30)) + result = round(math.sqrt(2 * 50 * d / 30)) + print(result) -print(print_formula(150)) +print_formula(150) \ No newline at end of file