-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarksheet.py
19 lines (19 loc) · 1.17 KB
/
marksheet.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Eng_Marks=int(input(("enter your english marks: ")))
Urd_Marks=int(input(("enter your urdu marks: ")))
Phy_Marks=int(input(("enter your physics marks: ")))
Mat_Marks=int(input(("enter your maths marks: ")))
Isl_Marks=int(input(("enter your islamiat marks: ")))
Obt_Marks= Eng_Marks+Urd_Marks+Phy_Marks+Mat_Marks+Isl_Marks
Per= float(Obt_Marks)/5
if Per>40 and Per<50:
print("**Congratulations!** Your Grade is D & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elif Per>50 and Per<60:
print("**Congratulations!** Your Grade is C & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elif Per>60 and Per<70:
print("**Congratulations!** Your Grade is B & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elif Per>70 and Per<80:
print("**Congratulations!** Your Grade is A & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elif Per>80:
print("**Congratulations!** Your Grade is A+ & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elif Per<30:
print("**fail!** sorry you can't made it try again in next exam. Your Percentage is: "+str(Per)+"%")