Question: Write your program that: (1) opens last.txt file with read-only file mode (2) creates two list objects: - lst_name that includes all last names in
Write your program that:
(1) opens "last.txt" file with read-only file mode
(2) creates two list objects: - lst_name that includes all last names in "last.txt" as items lst_number that includes all all numbers in "last.txt" as items
(3) finds a number of names in 1st_name and assings it to "ans5_1"
(4) finds a number of numbers in lst_number and assigns it to "ans5_2"
Write your program that:
(1) opens "last.txt" file with read-only file mode
(2) creates a list object: lst_name that includes all last names in "last.txt" as items
(3) finds the longest last name and assign it to "ans6"
File 'last.txt'
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
