Skip to content

Commit 7677a15

Browse files
committed
fix exercise
1 parent f6b8d34 commit 7677a15

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

modules/50-loops/10-while/description.es.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,12 @@ theory: |
125125
126126
instructions: |
127127
128-
Modifica la función `print_numbers()` para que imprima los números en orden inverso. Para ello, debes ir desde el límite superior hasta el límite inferior. Es decir, el contador debe inicializarse con el valor máximo y, en el cuerpo del ciclo, debe disminuir hasta el límite inferior.
128+
Modifica la función `print_reversed_numbers()` para que imprima los números en orden inverso. Para ello, debes ir desde el límite superior hasta el límite inferior. Es decir, el contador debe inicializarse con el valor máximo y, en el cuerpo del ciclo, debe disminuir hasta el límite inferior.
129129
130130
Ejemplo de llamada y salida:
131131
132132
```python
133-
print_numbers(4)
133+
print_reversed_numbers(4)
134134
```
135135
136136
<pre class='hexlet-basics-output'>4<br>3<br>2<br>1<br>¡finished!</pre>

modules/50-loops/10-while/en/EXERCISE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
Modify the function `print_numbers()` so that it prints the numbers in reverse order. To do this, go from the upper bound to the lower bound. In other words, you should initialize the counter with the maximum value, and in the loop body, you should iterate it backwards down to the lower limit.
2+
Modify the function `print_reversed_numbers()` so that it prints the numbers in reverse order. To do this, go from the upper bound to the lower bound. In other words, you should initialize the counter with the maximum value, and in the loop body, you should iterate it backwards down to the lower limit.
33

44
Example call and output:
55

66
```python
7-
print_numbers(4)
7+
print_reversed_numbers(4)
88
```
99

1010
```text

modules/50-loops/10-while/es/EXERCISE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
Modifica la función `print_numbers()` para que imprima los números en orden inverso. Para ello, debes ir desde el límite superior hasta el límite inferior. Es decir, el contador debe inicializarse con el valor máximo y, en el cuerpo del ciclo, debe disminuir hasta el límite inferior.
2+
Modifica la función `print_reversed_numbers()` para que imprima los números en orden inverso. Para ello, debes ir desde el límite superior hasta el límite inferior. Es decir, el contador debe inicializarse con el valor máximo y, en el cuerpo del ciclo, debe disminuir hasta el límite inferior.
33

44
Ejemplo de llamada y salida:
55

66
```python
7-
print_numbers(4)
7+
print_reversed_numbers(4)
88
```
99

1010
```text

modules/50-loops/10-while/test_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ def test1(capsys):
88

99

1010
def test2(capsys):
11-
index.print_numbers(4)
11+
index.print_reversed_numbers(4)
1212
expect_output(capsys, "4\n3\n2\n1\nfinished!")

0 commit comments

Comments
 (0)