Exercise for Section 8.3.4 (P.244)

Design a program which will
  1. Ask the user how many lines of data he/she wants to generate.
  2. In each line, choose a random integer n between [1,10].
  3. Randomly generate n integers between [1,100]. Print them in a row (separated by commas).
  4. Save the output in a data file.
  5. 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