Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Calling Values
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mark Lawrence  
View profile  
 More options Aug 3 2012, 8:07 am
Newsgroups: comp.lang.python
From: Mark Lawrence <breamore...@yahoo.co.uk>
Date: Fri, 03 Aug 2012 13:07:38 +0100
Local: Fri, Aug 3 2012 8:07 am
Subject: Re: Calling Values
On 03/08/2012 12:49, Subhabrata wrote:

> Dear Group,

> I am trying to call the values of one function in the another function in the following way:
> def func1():
>    num1=10
>    num2=20
>    print "The Second Number is:",num2
>    return

> def func2():
>    num3=num1+num2
>    num4=num3+num1
>    print "New Number One is:",num3
>    print "New Number Two is:",num4
>    return

> I am preferring not to use argument passing or using class? Is there any alternate way?

> Thanking in Advance,
> Regards,
> Subhabrata.

I think you've got the wrong group, but I don't know the best one for
psychiatrists :)  Seriously I can't see what you're trying to achieve
with this approach.  Can you explain it and I'm certain that we'll come
up with a decent solution to your problem, whatever that may be.

--
Cheers.

Mark Lawrence.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.