I did all well but still i cant get crct ouptut as shown here below this text…

EXAMPLE:

```
>>> Enter a student’s assessment marks (separated by comma), type in letter N to finish:
>>> 40,100,0
>>> Enter a student’s assessment marks (separated by comma), type in letter N to finish:
>>> 50,50,40
>>> What is this student’s supplementary exam mark:
>>> 67
>>> Enter a student’s assessment marks (separated by comma), type in letter N to finish:
>>> 90,100,100
>>> Enter a student’s assessment marks (separated by comma), type in letter N to finish:
>>> N
>>> Number of students: 3
>>> Student pass rate: 66.67%
>>> Student pass rate (adjusted): 66.67%
>>> Average mark for Assessment 1: 60.00
>>> Average mark for Assessment 2: 83.33
>>> Average mark for Assessment 3: 46.67
>>> Average final mark: 64.00
>>> Average grade point: 1.5
>>> Number of HDs: 1
>>> Number of Ds: 0
>>> Number of Cs: 0
>>> Number of Ps: 0
>>> Number of SPs: 1
>>> Number of Fs: 1
```

```
import math
avg1 = 0;avg2 = 0;avg3 = 0;favg = 0
l = []
while True:
user_input = input("Enter a student's assessment marks(seperated by comma):")
if user_input == "N":break
a1,a2,a3 = eval(user_input)
avg1 += a1; avg2 += a2; avg3 += a3
f = (math.ceil(a1 * 0.2 + a2 * 0.4 + a3 * 0.4))
favg += f
g = ""
if f >= 85 and f <= 100:
g = "HD"
elif f >= 75 and f < 85:
g = "D"
elif f >= 65 and f < 75:
g = "C"
elif f >= 50 and f < 65:
g = "P"
elif f >= 45 and f <= 50:
if any([34<a1<50,34<a2<50]) and a3>49 or 34<a3<50:
s = int(input("Enter supplementary marks : "))
if s >= 50:
g = "SP"
else:
g = "F"
else :
if all([a1 == 0 and a2 == 0 or a1 == 0 and a3 == 0 or a2 == 0 and a3 == 0]):
if all([a1 == 0 or a2 == 0 or a3 == 0]):
g = "AF"
else:
g = "F"
l.append([f,g])
print("Number of students : ",len(l))
for i in l:
HD = i.count("HD")
D = i.count("D")
C = i.count("C")
P = i.count("P")
SP = i.count("SP")
F = i.count("F")
AF = i.count("AF")
spr = ((HD+D+C+P+SP)/len(l))*100
spra = ((HD+D+C+P+SP)/len(l)-AF)*100
agp =((HD*4.0)+(D*3.0)+(C*2.0)+P+(SP*0.5))/len(l)
print("Student pass rate:",spr)
print("Student pass rate (adjusted): ",spra)
print("Average mark for Assessment 1: %.2f"%(avg1/len(l)))
print("Average mark for Assessment 2: %.2f"%(avg2/len(l)))
print("Average mark for Assessment 3: %.2f"%(avg3/len(l)))
print("Average final mark: %.2f"%(favg/len(l)))
print("Average grade point: %.1f"%(agp))
print("Number of HD's:",HD)
print("Number of D's:",D)
print("Number of C's:",C)
print("Number of P's:",P)
print("Number of SP's:",SP)
print("Number of F's:",F)
```

and my output for it …

```
Enter a student's assessment marks(seperated by comma):40,100,0
Enter a student's assessment marks(seperated by comma):50,50,40
Enter supplementary marks : 67
Enter a student's assessment marks(seperated by comma):90,100,100
Enter a student's assessment marks(seperated by comma):N
Number of students : 3
Student pass rate: 0.3333333333333333%
Student pass rate (adjusted): 33.33333333333333
Average mark for Assessment 1: 60.00
Average mark for Assessment 2: 83.33
Average mark for Assessment 3: 46.67
Average final mark: 64.00
Average grade point: 1.3
Number of HD's: 1
Number of D's: 0
Number of C's: 0
Number of P's: 0
Number of SP's: 0
Number of F's: 0
```