Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #26441
| Path | csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <ethan@stoneleaf.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'argument': 0.04; 'works.': 0.07; 'friday,': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'received:184.172': 0.09; 'received:gator410.hostgator.com': 0.09; 'way:': 0.09; '~ethan~': 0.09; 'def': 0.10; 'passing': 0.15; '"new': 0.16; 'received:72.11': 0.16; 'received:72.11.125': 0.16; 'received:72.11.125.166': 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; 'way?': 0.29; 'no,': 0.29; '"the': 0.29; 'function': 0.30; 'code': 0.31; 'print': 0.32; "aren't": 0.33; 'to:addr:python-list': 0.33; 'another': 0.33; 'there': 0.35; 'does': 0.37; 'two': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'group,': 0.60; 'skip:n 10': 0.63; 'email addr:gmail.com': 0.63; 'received:67.18': 0.65; 'dear': 0.66; 'august': 0.66 |
| Date | Fri, 03 Aug 2012 08:37:52 -0700 |
| From | Ethan Furman <ethan@stoneleaf.us> |
| User-Agent | Thunderbird 1.5.0.10 (Windows/20070221) |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Calling Values |
| References | <8bdc29d5-fa88-4ead-a4a1-135d708eeb57@googlegroups.com> <21f0980d-10dc-4970-bace-8e909994fafd@googlegroups.com> |
| In-Reply-To | <21f0980d-10dc-4970-bace-8e909994fafd@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-AntiAbuse | This header was added to track abuse, please include it with any abuse report |
| X-AntiAbuse | Primary Hostname - gator410.hostgator.com |
| X-AntiAbuse | Original Domain - python.org |
| X-AntiAbuse | Originator/Caller UID/GID - [47 12] / [47 12] |
| X-AntiAbuse | Sender Address Domain - stoneleaf.us |
| X-BWhitelist | no |
| X-Source | |
| X-Source-Args | |
| X-Source-Dir | |
| X-Source-Sender | ([192.168.10.136]) [72.11.125.166]:3948 |
| X-Source-Auth | ethan+stoneleaf.us |
| X-Email-Count | 1 |
| X-Source-Cap | dG9idWs7dG9idWs7Z2F0b3I0MTAuaG9zdGdhdG9yLmNvbQ== |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2909.1344007931.4697.python-list@python.org> (permalink) |
| Lines | 76 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1344007931 news.xs4all.nl 6905 [2001:888:2000:d::a6]:42765 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:26441 |
Show key headers only | View raw
subhabangalore@gmail.com wrote: > On Friday, August 3, 2012 5:19:46 PM UTC+5:30, 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. > > Dear Group, > > def func1(): > > num1=10 > > num2=20 > > print "The Second Number is:",num2 > > return > > > def func2(): > > func1() > num3=num1+num2 > > num4=num3+num1 > > print "New Number One is:",num3 > > print "New Number Two is:",num4 > > > This works. No, it doesn't. If it does work for you then you have code you aren't showing us. ~Ethan~
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Calling Values Subhabrata <subhabangalore@gmail.com> - 2012-08-03 04:49 -0700
Re: Calling Values Mark Lawrence <breamoreboy@yahoo.co.uk> - 2012-08-03 13:07 +0100
Re: Calling Values Nobody <nobody@nowhere.com> - 2012-08-03 13:44 +0100
Re: Calling Values Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2012-08-03 14:32 +0200
Re: Calling Values subhabangalore@gmail.com - 2012-08-03 07:38 -0700
RE: Calling Values "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-08-03 15:30 +0000
Re: Calling Values Ethan Furman <ethan@stoneleaf.us> - 2012-08-03 08:37 -0700
Re: Calling Values Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-08-03 16:24 +0000
Re: Calling Values Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-08-03 13:20 -0400
Re: Calling Values subhabangalore@gmail.com - 2012-08-03 11:23 -0700
Re: Calling Values subhabangalore@gmail.com - 2012-08-03 11:23 -0700
Re: Calling Values alex23 <wuwei23@gmail.com> - 2012-08-05 19:56 -0700
csiph-web