Answers for "Choosing a random color in Python"

5

generate a color python

color = lambda : [random.randint(0, 255), random.randint(0, 255), random.randint(0, 255)]
Posted by: Guest on October-14-2020
1

python random hex color

import random
r = lambda: random.randint(0,255)
print('#%02X%02X%02X' % (r(),r(),r()))
Posted by: Guest on December-28-2020

Code answers related to "Choosing a random color in Python"

Python Answers by Framework

Browse Popular Code Answers by Language