Python Forum

Full Version: Randomizing Color Output
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
A friend and I have been working on this program together, he is more advanced at Python than I am, but he seems to keep losing me in explanations.

My program is here https://repl.it/@ammorgan03/Tryingthisagain

He set up lines 118-125 and lines 130-137.

I have done some searching around about how to randomize a color output and have input the line
rowtotal = Color_Names[random.randint(0, len(Color_Names) - 1)]
but do not know how to test if it is working, and do not know if it is even correct.

Can anybody point me in the right direction? I am currently trying to figure out the coding so it will display at least the first line of "Do this color, starting at row X, for X many rows"