Exercise 4: Print the Output Using Nested Arrays
Print a specific output based on an input nested array.
We'll cover the following
Problem statement
You’re given a two-dimensional array of numbers as input. For each number in the array, output as many *
symbols in the corresponding place.
Example
Consider the following array:
array = [
[1, 2, 3],
[2, 2, 2],
[3, 2, 1]
]
You should get the following output:
* ** ***
** ** **
*** ** *
Try it yourself
array = [[1, 2, 3],[2, 2, 2],[3, 2, 1]]# Start your code here