Question: For python Write a program that asks the user for the name of a text file, and then prints to the screen the lengths of
Write a program that asks the user for the name of a text file, and then prints to the screen the lengths of each of the lines. For example, if your text file contained: Sing me no song, read me no rhyme Don't waste my time, show me! Don't talk of June, don't talk of fall Don't talk at all Show me! Then a sample run of your program would look like: Enter file name: song.txt Line character count is 33 Line character count is 29 Line character count is 38 Line character count is 18 Line character count is 8
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
