Write a script named numberlines.py. This scriptcreates a program listing from a source program.
This script should:
- Prompt the user for the names of two files.
- The input filename could be the name of the script itself, butbe careful to use a different output filename!
- The script copies the lines of text from the input file to theoutput file, numbering each line as it goes.
- The line numbers should be right-justified in 4 columns, sothat the format of a line in the output file looks like thisexample:
1> This is the first line of text.