Skip to content

Commit 4b3b1f7

Browse files
fix(curriculum): correct minor typo in Python truthy/falsy lesson (freeCodeCamp#63854)
1 parent 2e21e80 commit 4b3b1f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curriculum/challenges/english/blocks/lecture-introduction-to-python/68480f431e8568b2056b140b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ print(is_citizen and age) # 25
7171

7272
In the above example, the number 25 is printed to the terminal because the `and` operator will evaluate the second operand if the first operand is `True`. The `and` operator is known as a short-circuit operator. Short-circuiting means Python checks values from left to right and stops as soon as it determines the final result.
7373

74-
You'll often use `and` within `if` statements to check if multiple conditions are met. Here’s how you can refactor the earlier example to uses the `and` operator instead of nested `if` statements:
74+
You'll often use `and` within `if` statements to check if multiple conditions are met. Here’s how you can refactor the earlier example to use the `and` operator instead of nested `if` statements:
7575

7676
```python
7777
is_citizen = True

0 commit comments

Comments
 (0)