thanks for your answer.
how can I update csv file with mean output results in new line.
actually the correct output result would be as below:
so i replaced the 11 line with below line:
how can I update csv file with mean output results in new line.
actually the correct output result would be as below:
Quote:mandana,7.5
hamid,6.066666666666666
sina,11.285714285714286
sara,9.75
soheila,7.833333333333333
ali,5.0
sarvin,11.375
so i replaced the 11 line with below line:
row.append(float(mean(grades)))