Question: 3. Write a Python program to find the longest word in a text file. 4. Write a Python program that reads a text file called

3. Write a Python program to find the longest

3. Write a Python program to find the longest word in a text file. 4. Write a Python program that reads a text file called sample.txt. A sample of the file is provided below, you may add more details to the file. Your program must read the data from the file and count the number of words in the file sample.txt: I like Python Programming 5. Write a Python program that reads a text file called "employee.txt. A sample of the file is provided below, you may add more details to the file. Each row has an employee name and respective salary. Your program must read the data from the file and identify the person with the highest salary in the list. Sample file is given below: salary.txt: John 41500 Mary 43500 Ahmed 31000 Tom 55300 Peter 38 600 Samantha 36900

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 General Management Questions!