Question: Writing code a . Write a function called cutter that takes 2 parameters, array and file _ name. The function should create a file with

Writing code
a. Write a function called cutter that takes 2 parameters, array and file_name. The
function should create a file with the name stored in the variable file_name. It
should then write half of the list stored in the variable array on the first line of the
file, then the rest of the list on the second line. After doing this, print the word
'Done!'.(Approx. lines of code: 5-10)
The function should run given the following code:
#your function goes here...
cutter([0,1,2,3,4,5,6], 'file_name.txt')
Writing code a . Write a function called cutter

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