Skip to content

Commit cbb679e

Browse files
authored
Docs: Update for-and-while-statement.md (#26)
1 parent 89a2863 commit cbb679e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/for-and-while-statement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Loops are used to repeat a specific code logic, and both Python and JavaScript u
1111

1212
Generate an array containing all numbers from 1 to 20, and print each item.
1313
#### JavaScript implementation
14-
```
14+
```typescript
1515
let numbers = Array.from({ length: 20 }, (_, i) => (i + 1));
1616

1717
for (let el of numbers) {
@@ -21,7 +21,7 @@ for (let el of numbers) {
2121
```
2222

2323
#### Python implementation
24-
```
24+
```python
2525
numbers = range(1, 21)
2626

2727
for el in numbers:

0 commit comments

Comments
 (0)