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(x):
print(x)
x= 8
func(x)
Using parameter outside the function may just work well without producing any error. F
For example the func function will just output 8 without producing any error.
Comments
Leave a comment