Firstly, I would like to apologize for the massive number of nooby crap questions that come out of my account. I'm an emerging programmer that doesn't always know what he's doing, so I'm sorry.
Secondly, the problem. I'm writing this code:
class Object():
def __init_(self, vertices, color, name):
self.color = color
self.name = name
self.vertices = vertices ##Vertices is in list form
def editVertice(self, vertice):
if vertice in self.vertices:
self.vertices.index(vertice)
else:
print "ERROR: VERTICE NOT RECOGNIZED. INSERT VALID VERTICE"
The problem I'm having is that when I run this, it gives an error saying that the term 'vertice' in the function editVertice is not recognized, even though its clearly being called in the function. (Yes, I am calling the class and function later in the code, but seeing as its over a 180 lines I thought it might be a good idea just to leave it be). I have no idea why. Any help would be appreciated. I would prefer not to scrap the code, but I can if need be. Thanks in advance!