Path: csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'argument': 0.04; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'way:': 0.09; 'def': 0.10; 'passing': 0.15; '"new': 0.16; 'decent': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'alternate': 0.17; 'trying': 0.21; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'values': 0.26; 'header:X -Complaints-To:1': 0.28; 'way?': 0.29; '"the': 0.29; "i'm": 0.29; 'function': 0.30; 'from:addr:yahoo.co.uk': 0.32; 'print': 0.32; 'certain': 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; "can't": 0.34; 'wrong': 0.34; 'whatever': 0.35; 'problem,': 0.35; 'there': 0.35; 'received:org': 0.36; 'explain': 0.36; 'but': 0.36; 'be.': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'group,': 0.60; "you've": 0.61; 'skip:n 10': 0.63; 'dear': 0.66; 'approach.': 0.91; 'received:2': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: Calling Values Date: Fri, 03 Aug 2012 13:07:38 +0100 References: <8bdc29d5-fa88-4ead-a4a1-135d708eeb57@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-2-98-198-200.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <8bdc29d5-fa88-4ead-a4a1-135d708eeb57@googlegroups.com> X-Antivirus: avast! (VPS 120803-0, 03/08/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1343995588 news.xs4all.nl 6969 [2001:888:2000:d::a6]:55088 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:26425 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.