PROGRAMMING:JMU Python data exception handling
Input a set of data and calculate the average value. requirement:
-The data is correct and the calculation is correct.
-Data error, abnormal processing, output error information, no calculation.
###Input format:
-Line 1: n represents the number of data input
-Next, N lines represent the input data
###Output format:
-If the input data is legal and correct, the output is correct and the average value is output.
-The input data is incorrect. If the value is wrong, the output value is wrong`
-Divide by 0 error, output divide by 0 error, n cannot wait for 0`
-Whether there is an exception or not, the output program ends`
###Input sample 1:
```in
three
two
a
```
###Output sample 1:
```out
Numerical error
End of procedure
```
###Input sample 2:
```in
0
```
###Output sample 2:
```out
Except for 0 error, n cannot wait for 0
End of procedure
```
###Input sample 3:
```in
three
five point six
six point eight
nine point four
```
###Output sample 3:
```out
correct
avg=7.27
End of procedure
```
answer:If there is no answer, please comment
-The data is correct and the calculation is correct.
-Data error, abnormal processing, output error information, no calculation.
###Input format:
-Line 1: n represents the number of data input
-Next, N lines represent the input data
###Output format:
-If the input data is legal and correct, the output is correct and the average value is output.
-The input data is incorrect. If the value is wrong, the output value is wrong`
-Divide by 0 error, output divide by 0 error, n cannot wait for 0`
-Whether there is an exception or not, the output program ends`
###Input sample 1:
```in
three
two
a
```
###Output sample 1:
```out
Numerical error
End of procedure
```
###Input sample 2:
```in
0
```
###Output sample 2:
```out
Except for 0 error, n cannot wait for 0
End of procedure
```
###Input sample 3:
```in
three
five point six
six point eight
nine point four
```
###Output sample 3:
```out
correct
avg=7.27
End of procedure
```
answer:If there is no answer, please comment