From d3e7874710c9aa082cb4b809fc4ea63df1492d53 Mon Sep 17 00:00:00 2001 From: Jeet Upadhyay <82926740+jeet200@users.noreply.github.com> Date: Sat, 31 Jan 2026 08:38:30 +0530 Subject: [PATCH] Add conditional statements for grade evaluation --- 3-control-flow/12_grades.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/3-control-flow/12_grades.py b/3-control-flow/12_grades.py index ff14170..8f5618e 100644 --- a/3-control-flow/12_grades.py +++ b/3-control-flow/12_grades.py @@ -3,7 +3,11 @@ grade = 58 +#First Way if grade >= 55: print('You passed.') else: print('You failed.') + +#Second Way +print("You Passed" if grade >= 55 else "You Failed")