79571643

Date: 2025-04-13 14:16:48
Score: 3
Natty:
Report link

ah ok thats how I have it. So i create 2 lists:

COLOR_NAMES = ["RED", "BLUE", "YELLOW", "GREEN"]
COLOR_LIST = ["0,1,1,1", "0,0,1,1", "1,1,1,1", "1,0,0,1"]

instead of the name "Red" he just gives me the first letter "R". Thats because of this line?
random_index = random.randrange(len(self.COLOR_NAMES))

should I get rid of len funktion?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Tim Fuhrmann