Question: I need this code in PYTHON please!!! and read the bold phase!!! THank you! Write a function called modify that adds an element (passed in

I need this code in PYTHON please!!! and read the bold phase!!! THank you!

I need this code in PYTHON please!!! and read the bold phase!!!

Write a function called modify that adds an element (passed in as an argument) to the end of every inner list in a two dimensional list passed in as an argument. Return the modified list. For example, if the incoming list is [[3, 4], [1], [5, 3, 4]] and the incoming element is 5, your code would return the list 03, 4, 5], [1, 5], [5, 3, 4, 5]]. You may not use any built in functions/methods besides len() and .append()|

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