blob: fb281332c426478c09b934414f2c1e91c974edb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
marks = []
marks.append(int(input("analysis: ")))
marks.append(int(input("design: ")))
marks.append(int(input("implimentation: ")))
marks.append(int(input("evaluation: ")))
total = 0
for i in marks:
total = total + i
if total >= 80:
print("9")
elif 80 > total >= 67:
print("8")
elif 67 < total <= 54:
print("7")
elif 54 < total <= 41:
print("6")
elif 41 < total <= 31:
print("5")
elif 31 < total <= 22:
print("4")
elif 22 < total <= 13:
print("3")
elif 13 < total <= 4:
print("2")
elif 4 < total <= 2:
print("1")
else:
print("U")
print("total ", total)
|