From 8034e92926d4d33ad457f39d3c30cf827e684b6d Mon Sep 17 00:00:00 2001 From: Habiba Sorour Date: Wed, 29 Jul 2026 21:11:10 +0300 Subject: [PATCH] fixed variable name --- source/ch4_conditionals.ptx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ch4_conditionals.ptx b/source/ch4_conditionals.ptx index 14225dc..3af1379 100644 --- a/source/ch4_conditionals.ptx +++ b/source/ch4_conditionals.ptx @@ -193,7 +193,7 @@ Java also supports a switch statement that acts something like the eli # Convert grade to a scale of 0-10 using integer division tempgrade = grade // 10 def grading(tempgrade): - match grade: + match tempgrade: case 10 | 9: return 'A' case 8: