Skip to content

Commit

Permalink
Update Incorrect Conditional Statement 13-conditionals.md
Browse files Browse the repository at this point in the history
Greetings Team, 

During one of our demos, it was brought to our notice that the conditional statement and output are incorrect. I have updated the conditional statement to cover all the cases.
  • Loading branch information
Shivay-Shakti authored Feb 16, 2024
1 parent 2408c73 commit e63548f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions episodes/13-conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,16 @@ for m in masses:

```python
grade = 85
if grade >= 70:
if grade >= 70 and grade < 80:
print('grade is C')
elif grade >= 80:
elif grade >= 80 and grade < 90:
print('grade is B')
elif grade >= 90:
print('grade is A')
```

```output
grade is C
grade is B
```

- Does *not* automatically go back and re-evaluate if values change.
Expand Down

0 comments on commit e63548f

Please sign in to comment.