In [1]:
class Foo:
    foo = 'hello'
    
    def __init__(self, s):
        self.bar = s
        
    def baz(self):
        return 'foo is %r and bar is %r' % (self.foo, self.bar)

In [2]:
f = Foo('world')

In [3]:
f.foo


Out[3]:
'hello'

In [4]:
f.bar


Out[4]:
'world'

In [5]:
f.baz()


Out[5]:
"foo is 'hello' and bar is 'world'"