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

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

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