Question
dont use any of the built in library. make use of simple commands like count, append, read, w+ etc. 1 Write python program to check
dont use any of the built in library. make use of simple commands like count, append, read, w+ etc.
1
Write python program to check the total number of lines/sentences in a text file. Your program will display total number of lines after reading to the file and also user how many lines he want to print. Get the input from user and display the given number of lines.
2
Write python program to generate/make a copy of the given text file. Your program will read a given text file and write new file having the same lines/sentences. Get the name of new file from user.
3
Write python program to update the specific line/sentence in a given text file. Your program will get a line number along with new text/sentence from user and update it in the given text file.
4
Write python program to store/read the list in a text file. Your program will get the values of the list from user and calculate the sum and product of all values of list. Store the values of list along with sum and product in a text file.
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