I have a 2d array where I'm trying to iterate through the thing and print ouf every element. For loops in Python are annoying/confusing because you don't have the expressability as you do in C++ with being able to set conditions/increments.
Anyways, when I try to print out the contents of this array, it prints out the contents of the array 3 times instead of just once.
twoDarray = [[10, 15, 20], [25, 30, 35], [45, 50, 60]]
for i in twoDarray:
for num in twoDarray:
print(num)
Why is my nested for loop not working as expected?