Question: please use python ,thanks! Irregular lists Write a function traverse(ls) that takes a two-dimensional list is of ony shape, and prints out each element in

please use python ,thanks!
Irregular lists Write a function traverse(ls) that takes a two-dimensional list is of ony shape, and prints out each element in 1s # Your traverse' function should work with *any* two-dimensional list. # For example: 3 ls-a - [[1, 2], [3, 4, 5, 6], [7, 8, 9]] # 3 "rows", each row is of irregular length 4. 5 traverse(ls-a) # prints: 6 #12 7 8 #789 #3456 Hint: Use the len function to determine the number of rows in the list, and the length of each row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
