Question: a)Write a Python program to read a file line by line store it into a list. Each line should be an item in the list

a)Write a Python program to read a file line by line store it into a list. Each line should be an item in the list and Write a python program to find the longest words. You should split the text by space. b) Write a Python program to count the number of lines in a text file.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!