Question: # Fill in your function increment_2D() here # Your function should return the updated 2d list def increment_2D(list_2d): return Now, let's get some practice coding
# Fill in your function increment_2D() here # Your function should return the updated 2d list def increment_2D(list_2d): return

Now, let's get some practice coding nested for loops for 2D lists. Define a function increment_2D that will take as a parameter a 2D list of integers and returns a 2D list with every element incremented by 1. This function should work regardless of the size of the 2D list. For this code challenge, don't worry about empty lists. Sample Input 1: 8,1,3 2,3,4 1,2,4 Sample Output 1: 9,2,4 3,4,5 2,3,5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
