4 ms·
There is an additional technical difference: Tuples are hashable and can be used as keys in a dictionary. grid[(1,1)] = True
by jackweirdy 10y ago
There is an additional technical difference: Tuples are hashable and can be used as keys in a dictionary.
grid[(1,1)] = True
- vbit 10y agoThe article mentions this. Also you can write this as `grid[1, 1] = True`