Re: Question on Python Function

2010-05-27 Thread joy99
On May 25, 12:18 pm, Peter Otten <__pete...@web.de> wrote: > Kushal Kumaran wrote: > > On Tue, May 25, 2010 at 3:38 AM,joy99 wrote: > >> > > >> Dear Vlastimir, > > >> As pointed out by Alister, I can print the values of function1 and > >> function2 with the help of another function3, but my target

Re: Question on Python Function

2010-05-25 Thread Peter Otten
Kushal Kumaran wrote: > On Tue, May 25, 2010 at 3:38 AM, joy99 wrote: >> >> >> Dear Vlastimir, >> >> As pointed out by Alister, I can print the values of function1 and >> function2 with the help of another function3, but my target is to call >> the "add" value of function1 and "mult" value of fu

Re: Question on Python Function

2010-05-24 Thread Kushal Kumaran
On Tue, May 25, 2010 at 3:38 AM, joy99 wrote: > > > Dear Vlastimir, > > As pointed out by Alister, I can print the values of function1 and > function2 with the help of another function3, but my target is to call > the "add" value of function1 and "mult" value of function2 in a third > function or

Re: Question on Python Function

2010-05-24 Thread joy99
On May 25, 1:56 am, Vlastimil Brom wrote: > 2010/5/24 joy99 : > > > > > > > > > Dear Group, > > > I have a small question on function. > > > If I write two functions like the following: > > > IDLE 2.6.5 > def function1(n): > >        element1=5 > >        element2=6 > >        add=element1+el

Re: Question on Python Function

2010-05-24 Thread joy99
On May 25, 1:56 am, Vlastimil Brom wrote: > 2010/5/24 joy99 : > > > > > > > > > Dear Group, > > > I have a small question on function. > > > If I write two functions like the following: > > > IDLE 2.6.5 > def function1(n): > >        element1=5 > >        element2=6 > >        add=element1+el

Re: Question on Python Function

2010-05-24 Thread Alister
On Mon, 24 May 2010 22:56:34 +0200, Vlastimil Brom wrote: > 2010/5/24 joy99 : >> >> >> Dear Group, >> >> I have a small question on function. >> >> If I write two functions like the following: >> >> IDLE 2.6.5 > def function1(n): >>        element1=5 >>        element2=6 >>        add=element1

Re: Question on Python Function

2010-05-24 Thread Vlastimil Brom
2010/5/24 joy99 : > > > Dear Group, > > I have a small question on function. > > If I write two functions like the following: > > IDLE 2.6.5 def function1(n): >        element1=5 >        element2=6 >        add=element1+element2 >        print "PRINT THE ADDITION",add > > def function2(n

Re: Question on Python Function

2010-05-24 Thread Alister
On Mon, 24 May 2010 13:15:01 -0700, joy99 wrote: > Dear Group, > > I have a small question on function. > > If I write two functions like the following: > > IDLE 2.6.5 def function1(n): > element1=5 > element2=6 > add=element1+element2 > print "PRINT THE ADDITION",a

Question on Python Function

2010-05-24 Thread joy99
Dear Group, I have a small question on function. If I write two functions like the following: IDLE 2.6.5 >>> def function1(n): element1=5 element2=6 add=element1+element2 print "PRINT THE ADDITION",add >>> def function2(n): element3=7 element4=