7th day of python challenges 96-103
This commit is contained in:
7
challenges96-103/challenge-097.py
Normal file
7
challenges96-103/challenge-097.py
Normal file
@@ -0,0 +1,7 @@
|
||||
array_list = [[2, 5, 8], [3, 7, 4], [1, 6, 9], [4, 2, 0]]
|
||||
print(' row0 row1 row2')
|
||||
for i in array_list:
|
||||
print('column', i)
|
||||
column = int(input('Please select a COLUMN from array above : '))
|
||||
row = int(input('Please select a ROW number from array above : '))
|
||||
print('the value in [{0}][{1}] = {2}'.format(row, column, array_list[column][row]))
|
||||
Reference in New Issue
Block a user