IN PYTHON Please answer the problem below. Also, please explain the purpose of any code written in as much detail as possible. Assume there is a file called "data.txt" that contains lines of numbers separated by commas.   10,20,30 40,50,60 70,80,90,100   Read and store all the values in a list of lists of strings. Then convert all strings to floats. HINT: Use a nested for-in loop that uses ranges.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter13: File Input And Output
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

IN PYTHON

Please answer the problem below. Also, please explain the purpose of any code written in as much detail as possible.

Assume there is a file called "data.txt" that contains lines of numbers separated by commas.

 

10,20,30

40,50,60

70,80,90,100

 

Read and store all the values in a list of lists of strings. Then convert all strings to floats. HINT: Use a nested for-in loop that uses ranges.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Basics of loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT