view example/global.py @ 55:32c78b275d5a

Implement comprehension’s to_string.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sun, 12 Jun 2016 02:27:57 +0100
parents 211b0df72e64
children
line wrap: on
line source

value = 2

def function():
    global value
    value = 3

if __name__ == '__main__':
    print(value)
    function()
    print(value)