- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmarksheet.py
More file actions
Latest commit
19 lines (19 loc) · 1.17 KB
/
Copy pathmarksheet.py
File metadata and controls
19 lines (19 loc) · 1.17 KB
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
ifPer>40andPer<50:
print("**Congratulations!** Your Grade is D & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elifPer>50andPer<60:
print("**Congratulations!** Your Grade is C & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elifPer>60andPer<70:
print("**Congratulations!** Your Grade is B & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elifPer>70andPer<80:
print("**Congratulations!** Your Grade is A & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elifPer>80:
print("**Congratulations!** Your Grade is A+ & Your Marks is: "+str(Obt_Marks)+" & Your Percentage is: "+str(Per)+"%")
elifPer<30:
print("**fail!** sorry you can't made it try again in next exam. Your Percentage is: "+str(Per)+"%")