can we change the variables with function

Xavier Ho contact at xavierho.com
Sun May 9 04:37:12 EDT 2010


On Sun, May 9, 2010 at 6:19 PM, gopi krishna <dasarathulagopi at gmail.com>wrote:

> Hi
>    can I change the variable in a function using the function
> suppose
> >>>def a():
> x=20
> can we change the variable using the function
>

Can you give us an example of how you'd like to "change the variable", in
code, and show us what didn't work? We might be able to help with some
sample code.

Cheers,
Xav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100509/f4f1e8d3/attachment.html>


More information about the Python-list mailing list