Question: Define a function read _ data that accepts a single argument corresponding to the filename, and returns a list of lists. You can find an
Define a function readdata that accepts a single argument corresponding to the
filename, and returns a list of lists.
You can find an example file to work within the Brightspace and the startercode
section of the Vocareum
Each line in the data file follows this format: Name num num num
Ben,
Mary,
Giulia,
The function must return a list of lists where each sublist represents one line from the
file. All the numbers must be converted to float datatype in the returned value
Sample output:
printreaddatasampledata.txt
BenMary
Giulia
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
