A
alefajnie
#!/usr/bin/env python
arr = [[0 for c in range(0, 10)] for r in range(0, 10)] #
10x10 array
arr[2,3] # throws TypeError: list indices must be
integers
arr[int(2), int(3)] # also throws TypeError: list indices must be
integers !
arr = [[0 for c in range(0, 10)] for r in range(0, 10)] #
10x10 array
arr[2,3] # throws TypeError: list indices must be
integers
arr[int(2), int(3)] # also throws TypeError: list indices must be
integers !