title: I've been trying to use the random.shuffle with tkinter. Can someone help me write a function to shuffle the colors on the buttons.
body: <p>I am still a beginner and I have yet to understand how to write a function, that works.<br>
      import tkinter</p>
  
  <pre><code>root = tkinter.Tk()
  root.title("Shuffle Colors")
  
  # The list of colors
  colors = ['red','yellow', 'pink', 'purple','green', 'blue', 'orange','Brown']
  
  #looping each color
  for c in colors:
  
  #Buttons
  button1 = tkinter.Button(root, text=c, bg=c)
  button1.pack(fill = tkinter.X)
  
  root.mainloop()
  </code></pre>