Skip to content

Commit 2a3c851

Browse files
authored
Create Pass_Fail-rakshit1104.py
The program checks whether a student has passed or not. It checks that whether the aggregate is 40% and secondary it checks whether the student is passed in individual subjects or not.
1 parent cfd2779 commit 2a3c851

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)