3 ms·
Depends on the machine. See the comments in the file: https://github.com/ubernostrum/webcolors/blob/master/tests/full_colors.py https://github.com/ubernostrum/
by ubernostrum 9y ago
Depends 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.