Question: Anybody know how to solve this in python? Write a complete Python program with prompts for the user for the main text file (checks that

 Anybody know how to solve this in python? Write a complete
Anybody know how to solve this in python?

Write a complete Python program with prompts for the user for the main text file (checks that it exists, and if not, output an error message and stop), for any possible flags (including none), and for any other input that this program may need from the user: split has an option of naming the smaller files head_tail list the first 10 lines (default) and the last 10 lines (default) in order of the given text file flag: -# output # lines instead of default lines Comment: If the file has less than 20 lines (default), output the entire file split flags: -# put # lines of text into each output file (defaults = 1000 lines) input file name file to be split (note extension and use it on split files) file of newfiles (example: name-aa.ext, name-ab.ext, ) name may be blank, so the files are: xaa.ext, xab.ext, etc. Comment: Output the name of the file as it is being created wc count characters, lines, and words in a text file output order: lines words characters Write a complete Python program with prompts for the user for the main text file (checks that it exists, and if not, output an error message and stop), for any possible flags (including none), and for any other input that this program may need from the user: split has an option of naming the smaller files head_tail list the first 10 lines (default) and the last 10 lines (default) in order of the given text file flag: -# output # lines instead of default lines Comment: If the file has less than 20 lines (default), output the entire file split flags: -# put # lines of text into each output file (defaults = 1000 lines) input file name file to be split (note extension and use it on split files) file of newfiles (example: name-aa.ext, name-ab.ext, ) name may be blank, so the files are: xaa.ext, xab.ext, etc. Comment: Output the name of the file as it is being created wc count characters, lines, and words in a text file output order: lines words characters

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!