#!/usr/bin/env python
'''
This script demonstrates scope.
'''

# Let's create a variable and assign it an integer
mynum = 3

print 'Here is my number:', mynum

def change_mynum(x):
    ## comment the next line
    global mynum

    ## can also use: mynum += x
    mynum = mynum + x

    ## return the new value
    return mynum

print 'change_mynum:', change_mynum(4)

print 'mynum:', mynum