Skip to content

Commit a38d6b2

Browse files
authored
Fix names
1 parent d428b7f commit a38d6b2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lessons/03_conditional_statements.qmd

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if my_name == 'Anja':
145145

146146
### Indentation Matters
147147

148-
You may have noticed that the code block is indented. This is not just for the readability, it is actually required in Python. The indentation tells Python which lines of code belong to the `if` statement. If you forget to indent, you will get an error or the code will not execute as expected.
148+
You may have noticed that the code block is indented. This is not just for the readability; it is actually required in Python. The indentation tells Python which lines of code belong to the `if` statement. If you forget to indent, you will get an error or the code will not execute as expected.
149149

150150
```{python}
151151
#| label: if_statement_indentation_error
@@ -232,7 +232,7 @@ We can join together the functionality of multiple `if` statements using `elif`
232232

233233
### `else` Statements
234234

235-
Sometimes you may want to have a "catch-all" block of code that executes when the `if` statement is not met. This is where `else` comes in! We can build upon the "Alice" example from above and add an `else` statement to handle the case where `name != "Alice"`:
235+
Sometimes you may want to have a "catch-all" block of code that executes when the `if` statement is not met. This is where `else` comes in! We can build upon the "Anja" example from above and add an `else` statement to handle the case where `name != "Anja"`:
236236

237237
```{python}
238238
#| label: if_else_example
@@ -287,12 +287,12 @@ if my_name == 'Anja':
287287
# Otherwise
288288
else:
289289
# Print this message
290-
print("You aren't Alice or Bob!")
290+
print("You aren't Anja or Noor!")
291291
# Otherwise, check if my_name matches 'Noor'
292292
# Note that this syntax of putting elif after the else is going to return an error on line 14
293293
elif name == "Noor":
294294
# If true, print this message
295-
print("Hello, Bob!")
295+
print("Hello, Noor!")
296296
```
297297

298298
:::
@@ -354,7 +354,7 @@ The `not` operator allows us to check if a condition is `False` and returns a `T
354354
not x > 10
355355
```
356356

357-
This is sometimes more intuitive to read than writing `x <= 10:`.
357+
This is sometimes more intuitive to read than writing `x <= 10`.
358358

359359
### Combining Logical Operators
360360

@@ -390,4 +390,4 @@ While the second example will return `False`:
390390

391391
[Next Lesson >>](04_data_structures.qmd)
392392

393-
[Back to Schedule](../schedule/schedule.qmd)
393+
[Back to Schedule](../schedule/schedule.qmd)

0 commit comments

Comments
 (0)