You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: exercises/concept/making-the-grade/.docs/introduction.md
-32Lines changed: 0 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,23 +10,6 @@ The keywords `break`, `continue`, and `else` help customize loop behavior.
10
10
11
11
[`while`][while statement] loops will continue to execute as long as the `loop expression` or "test" evaluates to `True` in a [`boolean context`][truth value testing], terminating when it evaluates to `False`:
12
12
13
-
```python
14
-
15
-
# Lists are considered "truthy" in a boolean context if they
16
-
# contain one or more values, and "falsy" if they are empty.
print(f"{word.title()} (at index {index}) starts with a b.")
147
-
148
-
'Barrel (at index 2) starts with a b.'
149
-
'Bongo (at index 3) starts with a b.'
150
-
'Bear (at index 6) starts with a b.'
151
-
```
152
-
153
121
154
122
The [`break`][break statement] (_like in many C-related languages_) keyword can be used to stop the iteration and "break out" of the innermost enclosing `loop`:
0 commit comments