Program to Display Element of 2D Array || 2D Array || Python

In this we are going to see a basic program to display elements of 2D array in Python Programming Language.




arr = [ [72, 85, 87, 90, 69], [80, 87, 65, 89, 85], [96, 91, 70, 78, 97], [90, 93, 91, 90, 94], [57, 89, 82, 69, 60] ]
for i in arr:
    print(i)

print()
for i in arr:
    for j in range(len(i)):
        print(i[j],end=" ")


#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post