1class Example(object):
2 def __init__(self):
3 self.itsProblem = "problem"
4
5
6theExample = Example()
7print(theExample.itsProblem)
1class Example(object):
2 itsProblem = "problem"
3
4
5theExample = Example()
6print(theExample.itsProblem)
7print (Example.itsProblem)