I want to operate a local list in a class in Python. I can not do that:
Code:
class cCompetition:
    lcPersonAll = []
 
    def AddPerson(self, cPersonNew):
        lcPersonAll.append(cPersonNew)
 
cCompetition1 = cCompetition()
cCompetition1.AddPerson("Smith")
However, global list is possible.