Im trying to make a method that checks if the object will be of a faculty type based from the faculty class. This is the code but im getting a syntax error?
def addFaculty(self, f_obj):
if f_obj isinstance(f_obj, Faculty):
return True
else:
self.directory.append(f_obj)