loop over twodimensional array python

array = [
  [2, 4, 5, 6],
  [6, 5, 99],
  [849, 33, 7, 7]
]

for i in array:
	for j in i:
      	print(j, end=", ")
        
# 2, 4, 5, 6, 6, 5, 99, 849, 33, 7, 7, 

Here is what the above code is Doing:
1. We have a nested for loop.
2. The outer loop iterates over each element in the array.
3. The inner loop iterates over each element in the nested array.
4. The end keyword is used to print the elements on the same line.
5. The comma is used to print the elements with a space.