Convert Asciidoc to markdown
Converted asciidoc to markdown using ai.
This commit is contained in:
24
training/answers/02-language-basics/05-for-loop.md
Normal file
24
training/answers/02-language-basics/05-for-loop.md
Normal file
@ -0,0 +1,24 @@
|
||||
# Exercices
|
||||
|
||||
## Exercice 1
|
||||
|
||||
```python
|
||||
for number in range(10):
|
||||
print(number)
|
||||
```
|
||||
|
||||
## Exercice 2
|
||||
|
||||
```python
|
||||
for number in range(10):
|
||||
if number % 2 == 0: # Est pair / reste 0 quand on fait la division entière
|
||||
print(number)
|
||||
```
|
||||
|
||||
## Exercice A1
|
||||
|
||||
```python
|
||||
for item1 in range(10):
|
||||
for item2 in range(item1):
|
||||
print(item1, item2)
|
||||
```
|
Reference in New Issue
Block a user