Create a function that takes an argument. Give the function parameter a unique name. Show what happens when you try to use that parameter name outside the function. Explain the results.
def func(a):
print(a)
a= 8
func(a)
#Using parameter outside the function works well without producing any error.
#For example the func function will just output 8 without producing any error.
Comments
Leave a comment