Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Randomizing Color Output
#1
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"
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 986 Oct-25-2023, 09:09 AM
Last Post: codelab
  Regarding how to randomizing list with having equal probability radraw 14 2,154 Nov-06-2022, 11:09 PM
Last Post: Pedroski55
  Change Text Color Output in Python bluethundr 2 8,715 Mar-06-2019, 10:23 PM
Last Post: bluethundr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020