fix(curriculum): correct minor typo in Python truthy/falsy lesson (#63854)

This commit is contained in:
Satyam Kumar Verman
2025-11-15 13:13:47 -05:00
committed by GitHub
parent 2e21e80a3a
commit 4b3b1f742c
@@ -71,7 +71,7 @@ print(is_citizen and age) # 25
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.
You'll often use `and` within `if` statements to check if multiple conditions are met. Heres how you can refactor the earlier example to uses the `and` operator instead of nested `if` statements:
You'll often use `and` within `if` statements to check if multiple conditions are met. Heres how you can refactor the earlier example to use the `and` operator instead of nested `if` statements:
```python
is_citizen = True