Hey I am getting errors for my assignment I am trying to find out where I have gone wrong in my coding. The newGrey is the formula our instructor gave us in the specification document in j.e.s it does not know the word scale I have no idea as to whether I need to enter a value in there I have tried doing so but then get the error that it can't work out if it's an integer or not. I don't want someone to do the work for me but to look over see my error and help me in the right direction thanks.

Code:
def driverassignment1easy():
  pic=makePicture(pickAFile())
  for p in getPixels(pic):
      show(pic)
      w1=3
      w2=2
      w3=9
      w4=2
      w5=1
      w6=8
      w7=7
      getRed(p)
      getGreen(p)
      getBlue(p)      
      newGrey = makeColor(((((499*w5)*(498*w6)*0.1)%(scale+1))+4)/(255+scale))*255
     
      repaint(pic)