a bunch of grammar fixes

This commit is contained in:
Francesco Cozzuto
2022-08-17 23:58:28 +02:00
parent 7e0144faa3
commit 71e8a9e4cb
14 changed files with 42 additions and 75 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ while condition: {
```
as you can see, it doesn't need an ending `;`.
when the interpreter encounters a while statement, it evaluates the condition. If the condition is true, it executes it's body. When the execution of the inner block of code is completed, the execution jumps back to the condition, evaluating it again. If it's again true, the inner code is executed again, else the execution jumps after the while statement. This mechanism can go on potentially for ever!
When the interpreter encounters a while statement, it evaluates the condition. If the condition is true, it executes its body. When the execution of the inner block of code is completed, the execution jumps back to the condition, evaluating it again. If it's again true, the inner code is executed again, else the execution jumps after the while statement. This mechanism can go on potentially for ever!
Like for if-else statements, when the inner block only has one statement, you can drop the `{}`
```py