Re:Playing with Strings and Colors in Python
by barakstout on Friday December 28, 2012 @10:57AM
(#4978108)
Both versions will work just fine. And number mod 7 will give an index of 0 to 6, which covers any color index from the colors tuple. Also, I tested it out just in case.
EDIT: The only issue is that if the string has a repeated letter it will be the same color.
EDIT: The only issue is that if the string has a repeated letter it will be the same color.