Question: In Python: define and invoke main, don't use if __name__ == '__main__':, please don't hardcode, is a program that asks, so need input. Write a
In Python: define and invoke main, don't use if __name__ == '__main__':, please don't hardcode, is a program that asks, so need input.

Write a program that asks the user for a file containing a list of items to be completed and a name for an output file. Your program should then write the list, with item numbers to the output file. For example, if the input file is: Finish my python homework. Buy milk. Do laundry Update webpage Then the output file would be: 1. Finish my python homework. 2. Buy milk. 3. Do laundry 4. Update webpage
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
