0
Lists using Input
So if Iām using input, Iām not understanding what I should use for āprintā to get the right letter for the seats list. My first mistake was print(row[]column[]) seats = [ ['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h', 'i'], ['j', 'k', 'l'] ] row = int(input()) column = int(input()) print(
1 Answer
+ 1
For example seats[0][1] will return 'b' and seats[3][1] will return 'k', consider first index as row and second as column.