We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cfd2779 + 2a3c851 commit 91cb915Copy full SHA for 91cb915
Pass_Fail-rakshit1104.py
@@ -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