3 ms·
I'd be more confused about the curly brackets, I only know python and have never seen them used like that? My brain goes like: Here comes a set or dict. Also,
by teekert 2y ago
I'd be more confused about the curly brackets, I only know python and have never seen them used like that? My brain goes like: Here comes a set or dict.
Also, why not do `all(cell[0][0],cell[1][1]),cell[2][2])` if you want to have True when all 3 are True?
Perhaps I'm missing something, I don't exactly consider myself a 1337 coder.
- deleted 2y ago[deleted]
- pansa2 2y ago> I'd be more confused about the curly brackets, I only know python and have never seen them used like that? Yeah, that’s C/C++/JavaScript/… syntax, it’s not valid Python. > why not do `all(cell[0][0],cell[1][1]),cell[2][2])` if you want to have True when all 3 are True? We want to test whether all three are the same, not whether they’re all True.