Array of colors in python
Question: What's the quickest way to get an array of colors in python? Something I can
index and pass to as the "color=" argument plotting in pylab.

The best I can come up with is:

    
    
    colors = [(random(),random(),random()) for i in range(10)]
    

but a solution that can generate well-spaced colors (interpolated?) would be
preferable.


Answer: 
    from random import randint
    colors = []
    
    for i in range(10):
        colors.append('%06X' % randint(0, 0xFFFFFF))
    

## Result Example:

`['#37AB65', '#3DF735', '#AD6D70', '#EC2504', '#8C0B90', '#C0E4FF', '#27B502',
'#7C60A8', '#CF95D7', '#F6CC1D']`

_ps: thanks to @Inerdia_

