I am trying to print the number of the row in 2d array (list of the list) like:
A B C D E F
1: - - - - - -
2: - - - - - -
I need to print only the number of rows 1:
can someone pls guide me
def printChart(list):
print('\n A B C D E F')
for i in list:
for e in i:
print(' ', e, end='')
print()
print()