2 ms·
I'm a little confused by for A in range(1, 27): for B in range(1, 27): if A == 2 * B: Why iterate over anything here? for A in ra
by IanCal 10y ago
I'm a little confused by
for A in range(1, 27):
for B in range(1, 27):
if A == 2 * B:
Why iterate over anything here?
for A in range(1, 27):
if A % 2 == 0:
B = A / 2
Or
for A in range(2, 27, 2):
B = A / 2
Is there a full version of the naive nested loops? I'd like to see just how readable the final version is with applying more rules like this.