Find the tail and head (tail_head) using PYTHON : This is the prompt and my code for
Question:
Find the tail and head (tail_head) using PYTHON: This is the prompt and my code for the first part, i only need help writing the tail_head, tail_head FLAG with input options, and IF statement (less than 2 times number of lines to skip output entire file)
Write a complete PYTHON program with prompts for the user to get the main text file (checks that it exists, and if not, output an error message and stop), for any possible flags (flags allows the user to change the default conditions or to use the defaults, and for any other input that this program may need from the user: split has an option of naming the smaller files. Your program will open the input file once only and using seek(0) to avoid re-opening the file will cost all points
MY CODE FOR OPENING AND ERROR CHECK:
---------------tail_head requirements--------------
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill