Skip to content

Commit 91cb915

Browse files
authored
Merge pull request GeeksforGeeks-VIT-Bhopal#62 from rakshit1104/patch-1
Pass_Fail-rakshit1104.py
2 parents cfd2779 + 2a3c851 commit 91cb915

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Pass_Fail-rakshit1104.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
sub1 = int(input("Enter your marks in Subject_1 - "))
2+
sub2 = int(input("Enter your marks in Subject_2 - "))
3+
sub3 = int(input("Enter your marks in Subject_3 - "))
4+
5+
subTotal = sub1 + sub2 + sub3
6+
7+
if subTotal < 120 :
8+
print("You Failed because your aggregate is less than 40%")
9+
elif sub1 or sub2 or sub3 <33:
10+
print("You Failed because your subject wise score is less than 33%")
11+
else :
12+
print("Congratulations!! You Passed the exam")

0 commit comments

Comments
 (0)