Skip to main content

Program to demonstrate Using the Same Variable Name in Calling Function and Function Definition

· One min read
Kaustubh Kulkarni

Que > Program to demonstrate Using the Same Variable Name in Calling Function and Function Definition

Program

file.py
def start(msg):
print(msg)
msg="Hello"
start(msg)

Output:

Output
Hello