Function parameter scope

Navkirat Singh navkirats at gmail.com
Wed Jul 28 22:00:34 EDT 2010


Hi,

I had another question:

What is the scope of  a parameter passed to a function? I know its a very basic question, but I am just sharpening my basics :)

def func_something(x)

	return print(x+1);

Does x become a local variable or does it stay as a module scoped variable?

Though I think its local, but just want to be sure.

Thanks,
Nav


More information about the Python-list mailing list