committed by
Manish Giri
parent
fe37a0a998
commit
aaba4c0987
@ -12,8 +12,8 @@ The basic syntax is:
|
|||||||
```python
|
```python
|
||||||
counter = 0
|
counter = 0
|
||||||
while counter < 10:
|
while counter < 10:
|
||||||
# Execute the block of code here as
|
# Execute the block of code here as long as counter is less than 10
|
||||||
# long as counter is less than 10
|
# To prevent an infinite loop, counter is incremented by 1 on each iteration
|
||||||
counter += 1
|
counter += 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user