title: Creating an array of objects in Python for pygame
body: <p>I create the objects</p>
  
  <pre><code>class Disk:
  def __init__(self,number,colour,position,size):
      self.size = size
      self.colour = colour
      self.number = number
      self.position = position
  
  
  def Render(self,screen):
      pygame.draw.rect(screen,self.colour,(self.position,self.size))
  </code></pre>
  
  <p>I am trying to create an array of this object using user input (for right now I am just making my own number)
  Colours are a seperate array that I've created (it works)</p>
  
  <pre><code>def drawDisk(screen,colours):
  
      num = 5
      for i in range (num):
           disk[i] = Disk(i,colours[i*num],(0+(i*15),500-(i*50)),(400 -(i*30),50))
      disk[i].Render(screen)
  </code></pre>
  
  <p>My program works except for when I try creating an array of disks and using those disks instead of hard coding each individual disk.</p>