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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started