<filename>Code/lecture 14/code2_variable.py<gh_stars>0
x = 10
y = 20
def mean(a,b,c):
    global d, x
    x = 15
    d = (a+b+c)/3.0
    print x, y
    return d

average = mean(x,y,x+y)
print average

print d
print x, y

<filename>Code/lecture 14/code2_variable.py<gh_stars>0
x = 10
y = 20
def mean(a,b,c):
    global d, x
    x = 15
    d = (a+b+c)/3.0
    print x, y
    return d

average = mean(x,y,x+y)
print average

print d
print x, y
