Professional Documents
Culture Documents
Python Nested List PDF
Python Nested List PDF
Accessing List
nested_list[0][1] # 2
nested_list[1][-1] # 6
# 1
# 2
# 3
# 4
# 5
# 6
# 7
# 8
# 9
[["X" if num % 2 != 0 else "O" for num in range(1,4)] for val in range(1,4)]