Steve Phillips / @elimisteve Jan. 29, 2025, evening Reasonable post overall, but in defense of Python, instead of [i for i, (a, b) in enumerate(zip(x, y)) if a == b] you could do [i for i in range(len(x)) if x[i] == y[i]] ...and in my new, currently-unannounced programming language, Voltair, one could do [i for i in 0 to x.len if x[i] == y[i]] Reply Report Reply and Subscribe
Reasonable post overall, but in defense of Python, instead of
[i for i, (a, b) in enumerate(zip(x, y)) if a == b]
you could do
[i for i in range(len(x)) if x[i] == y[i]]
...and in my new, currently-unannounced programming language, Voltair, one could do
[i for i in 0 to x.len if x[i] == y[i]]