Question: 1.)Write a Python program to open two .txt files and trim each file so that they only hold 4000 lines of data. The program should

1.)Write a Python program to open two .txt files and trim each file so that they only hold 4000 lines of data. The program should check each file and output the number of lines.

2.) Randomly generate a list of full names including first names and last names (for example James Smith) with the size of 4000 entries from the above text files and save the generated list into a text file.

3.)

Find the longest full name (name with the highest number of characters) entered in the list generated from section 2using both recursion and iteration.

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!