can we change the variables with function

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:33 AM, gopi krishna wrote: > My Question is > can we access the variables defined in a function ? class A: >     def b(self): >         x=40 >     z=40 > > q=A() q.z > 40 q.z=60 q.z > 60 > We can access the variables defined in a class as shown abo

Re: can we change the variables with function

2010-05-09 Thread Abhishek Mishra
Could you also demonstrate with an example as to what kind of effect you're expecting from whatever you've been desiring to do? On Sun, May 9, 2010 at 1:49 PM, gopi krishna wrote: > Hi >can I change the variable in a function using the function > suppose > >>>def a(): > x=20 > can we change t

Re: can we change the variables with function

2010-05-09 Thread Xavier Ho
On Sun, May 9, 2010 at 6:19 PM, gopi krishna 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 wha

Re: can we change the variables with function

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:19 AM, gopi krishna 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 Your question is incomprehensible. Please rephrase it more clearly and provide more details. Rega

can we change the variables with function

2010-05-09 Thread gopi krishna
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 -- http://mail.python.org/mailman/listinfo/python-list