# This program contains a global variable. # This is bad style. This program is # not a good example to follow! x = 0 def example(): x += 1 print("in example, x is", x) def main(): print("main start, x is", x) example() example() print("main end, x is", x) main()