Here is a sample program to demonstrate how to declare and use local variables in Python programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me at the following email address for further details.  If you want to advertise on my website, kindly contact me also at my email address also. Thank you.

My email address is and

My mobile number here in the Philippines is 09173084360.

Program Listing

# Prof. Jake R. Pomperada, MAED-IT, MIT
# June 7, 2021
# Bacolod City, Negros Occidental

def sum(a, b,c):
    print("\tLocal Variables in Python")
    sum = a + b + c
    print("\tThe sum of {0},{1} and {2} is {3}.".format(a,b,c,sum))