1 2 3 4 5 6 7 8 9 10 11 12
import sys class Baz: def hello(self): print(foo) if True: foo = 'bar' print("hello, {0}".format('world!')) c = Baz() c.hello()