Question: ake two files as arguments ( write . py , myfile.txt ) . Once again, even though you have the py file as your first

ake two files as arguments (write.py, myfile.txt). Once again, even though you
have the py file as your first argument, you dont need to write this in the
Run...Customized menu.
Check for the number of arguments and exit with a message if there arent
exactly 2.
Open the text file for writing.
Write the words cows,pigs,dogs,birds,cats,chickens into the text file
all on separate lines.
Close the file.
This program should take no input from the user and give no output in the IDLE shell. It should
create a file named myfile.txt.

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 Programming Questions!