Question: in python Write a program that asks the user for the name of the file. The program should write the contents of this input file
in python
Write a program that asks the user for the name of the file. The program should write the contents of this input file to an output file. In the output file, each line should be preceded with line number followed by a colon. The output file will have the same name as the input filename, preceded by ln (for linenumbers). Be sure to use Try/except to catch all exceptions.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
