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 Antwort
+ 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.