Some code.
class Todo(object):
def __init__(self, lst = [1, 2, 3]):
self.lst = lst
def add(self, item): #why isn't lst defined?
self.lst.append(item)
print(lst)
Posted Aug 1, 2015, 8:34 PM UTC
10
class Todo(object):
def __init__(self, lst = [1, 2, 3]):
self.lst = lst
def add(self, item): #why isn't lst defined?
self.lst.append(item)
print(lst)
Posted Aug 1, 2015, 8:34 PM UTC
No comments yet
Nobody commented on this post, or the comments weren't captured.