From 0f407145f947a4844f44ff529b4e2554b18b804e Mon Sep 17 00:00:00 2001 From: Stacey Borrego Date: Fri, 16 Feb 2024 09:05:59 -0700 Subject: [PATCH] Update 13-conditionals.md: fixed example Example was written in the wrong order. I adjusted the grade A for the grade C --- episodes/13-conditionals.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/episodes/13-conditionals.md b/episodes/13-conditionals.md index 6865a9c06..217eca25b 100644 --- a/episodes/13-conditionals.md +++ b/episodes/13-conditionals.md @@ -111,16 +111,16 @@ for m in masses: ```python grade = 85 -if grade >= 70: - print('grade is C') +if grade >= 90: + print('grade is A') elif grade >= 80: print('grade is B') -elif grade >= 90: - print('grade is A') +elif grade >= 70: + print('grade is C') ``` ```output -grade is C +grade is B ``` - Does *not* automatically go back and re-evaluate if values change.