Exercise for Section 8.3.4 (P.244)
Design a program which will
- Ask the user how many lines of data he/she wants to generate.
- In each line, choose a random integer n between [1,10].
- Randomly generate n integers between [1,100]. Print them in a row
(separated by commas).
- Save the output in a data file.
- Test average7.py with this data file.
The contents of the data file may look like
94,63
40,34,86,42,23
94,47,65,96,90,79,14
85,40,40
96,60
65,57,40,31,12,98,92,50,30
28,15,82,16,86,2,60,1,5