# Author: Scott Wehrwein
# Date: 04/24/2021
# Part 2 of a demonstration of local variables and scope

def axpy(a, x, y):
    """ Return a*x + y """
    a = a * x
    a += y
    return a

a1 = 2
x1 = 3
print(axpy(a1, x1, 4))
print(a1)