Andrew K.

asked • 04/11/21

FP_Lab_1.......

Write a program to print out the line number, the number of values in each line and total value of each line of the file.


file name is File_Lab1.txt.


output example:

Line 1 has 3 values and total is 60

Line 2 has 1 values and total is 20

Line 3 has 2 values and the total is 5096


1 Expert Answer

By:

Anthony B. answered • 10/16/23

Tutor
New to Wyzant

Software Engineer, Python/Java/Javascript with AI Background

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.