# L-7.5 MCS 260 Mon 30 Feb 2014 : global variables
"""
illustration of a global variable
"""
VALUE = 2014   # our global variable

def update(formalv):
    """
    shows value of formal v
    and prompts for new v
    """
    print 'v = ', formalv
    vraw = raw_input('Give new value : ')
    newv = int(vraw)
    return newv

while True:
    VALUE = update(VALUE) # do not forget ()
    ANS = raw_input('continue ? (y/n) ')
    if ANS != 'y':
        break
