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 jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.

Program Listing

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

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

sum(1,2,3)

https://youtu.be/EQxxWWJNDbk

Leave a Reply

Your email address will not be published. Required fields are marked *