Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo(self, name):
- names = []
- def __init__(self, name):
- self.names.append(name)
- itg = Foo('test')
- print(itg)
- itg2 = Foo('bob')
- print(itg2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement