Oct-14-2017, 10:55 PM
Thanks for the reply!
I've updated the code per your recommendations :)
I've updated the code per your recommendations :)
class try1: def __init__(self, a=None): self.a = a print(a) return def add(self, b): self.a.extend(b) print(a) return if __name__ == "__main__": c=try1(['a', 'b', 'c']) d = ['d', 'e', 'f'] try1.add(d)