From cf0c3f31a34e1d2fb9c248d45de37cf94b47bc40 Mon Sep 17 00:00:00 2001 From: GitHub Actions <actions@github.com> Date: Fri, 16 Feb 2024 22:55:01 +0000 Subject: [PATCH] markdown source builds Auto-generated via {sandpaper} Source : fee164fe26b7ae86ef4164ae02f27e1a59b53236 Branch : main Author : Allen Lee <alee@users.noreply.github.com> Time : 2024-02-16 22:53:50 +0000 Message : Merge pull request #671 from sborrego/patch-2 fix conditional logic ordering --- 13-conditionals.md | 10 +++++----- md5sum.txt | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/13-conditionals.md b/13-conditionals.md index 6865a9c06..217eca25b 100644 --- a/13-conditionals.md +++ b/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. diff --git a/md5sum.txt b/md5sum.txt index f757af277..9a92e8fc5 100644 --- a/md5sum.txt +++ b/md5sum.txt @@ -16,7 +16,7 @@ "episodes/10-lunch.md" "0624bfa89e628df443070e8c44271b33" "site/built/10-lunch.md" "2023-05-02" "episodes/11-lists.md" "1257daeb542377a3b04c6bec0d0ffee1" "site/built/11-lists.md" "2023-07-24" "episodes/12-for-loops.md" "1da6e4e57a25f8d4fd64802c2eb682c4" "site/built/12-for-loops.md" "2023-05-02" -"episodes/13-conditionals.md" "fe461994d104541f60dc8e37822b487c" "site/built/13-conditionals.md" "2023-05-02" +"episodes/13-conditionals.md" "2739086f688f386c32ce56400c6b27e2" "site/built/13-conditionals.md" "2024-02-16" "episodes/14-looping-data-sets.md" "e04f11544d1e5f3ca08ddcf22230a3a3" "site/built/14-looping-data-sets.md" "2023-05-02" "episodes/15-coffee.md" "062bae79eb17ee57f183b21658a8d813" "site/built/15-coffee.md" "2023-05-02" "episodes/16-writing-functions.md" "0f162f45b0072659b0113baf01ade027" "site/built/16-writing-functions.md" "2023-07-24"