

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Assignment 2 Csc 1310 Spring 2009
python ass2.py The average score is: 61.8888888889. The lowest score is: 30. The highest score is: 90. The number of failed students is: 4. score=[34, 56, 79, 90, 30, 60, 50,75, 83] sum=0. min=score[0] max=score[0] number= for i in score: if i>max: max=i if i<min: min=i if i<60: number=number+ sum=sum+i avg=sum/len(score) print "The average score is: "+str(avg)+"." print "The lowest score is: "+str(min)+"." print "The highest score is: "+str(max)+"." print "The number of failed students is: "+str(number)+"."