4 ms·
How long does that take?
by test1235 9y ago
How long does that take?
- ubernostrum 9y agoDepends on the machine. See the comments in the file: https://github.com/ubernostrum/webcolors/blob/master/tests/full_colors.py https://github.com/ubernostrum/webcolors/blob/master/tests/f... The fun part is people who criticize the generation of the integer triplets; yes, it's three nested loops and that's bad, but the total number of iterations will always be 16,777,216 no matter what algorithm you decide to use to generate them. So it uses nested loops since that's the most readable way to do it.