Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
01-09-2017, 11:30 AM #1
- Join Date
- Jan 2017
- Thanked 0 Times in 0 Posts
How do I create lists in classes in Python?
I want to operate a local list in a class in Python. I can not do that:
class cCompetition: lcPersonAll =  def AddPerson(self, cPersonNew): lcPersonAll.append(cPersonNew) cCompetition1 = cCompetition() cCompetition1.AddPerson("Smith")