-->
当前位置:首页 > 题库

PROGRAMMING:JMU Python statistical results

Luz5年前 (2021-05-10)题库478
Input a batch of student scores, calculate the average score, and count the number of students who failed.
###Input format:
Input one data for each line, and the input data is a negative number to end the input
###Output format:
`Average score = XX, number of failed students = XX ', where XX represents the corresponding data. If there is no student data, output 'no student'`
###Input example:
```in
thirty
fifty
seventy
eighty
ninety
twenty
-1
```
###Output example:
```out
Average score = 56.67, number of failed students = 3
```







answer:If there is no answer, please comment