I want to create a list of integers and user will have the right to add into this list a number of elements that user wants. How can I do that?
[code=python]
class createList:
def __ini__(self):
self._listInt = list()
def __addValue(self , newValue):
self._ListInt.a ppend(newvalue)
>>>AttributeErr or: createList intance has no attribute '_listInt'
[/code]
[code=python]
class createList:
def __ini__(self):
self._listInt = list()
def __addValue(self , newValue):
self._ListInt.a ppend(newvalue)
>>>AttributeErr or: createList intance has no attribute '_listInt'
[/code]
Comment