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 parameters, array and filename. The
function should create a file with the name stored in the variable filename. 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:
The function should run given the following code:
#your function goes here...
cutter 'filename.txt
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
