Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #36286

Re: How do you call a function several times in this context??

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.nosignal.org!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <jsf80238@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.109
X-Spam-Level *
X-Spam-Evidence '*H*': 0.80; '*S*': 0.02; 'subject:How': 0.09; 'cc:addr:python-list': 0.10; 'def': 0.10; 'subject:several': 0.16; 'sender:addr:gmail.com': 0.18; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'message-id:@mail.gmail.com': 0.27; 'skip:( 20': 0.28; 'print': 0.32; 'received:google.com': 0.34; 'received:209.85': 0.35; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'header:Received:5': 0.40; 'think': 0.40; 'skip:n 10': 0.63; 'subject:this': 0.84; 'subject:times': 0.84; 'to:addr:ntlworld.com': 0.84; 'subject:you': 0.88
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ljG0bBliLbiX9IEDzWirJ6EkGgepkK3IfmDCBUiPwVc=; b=EfZAqhCYsst6k1pzaYh1baApuW92eCDx0NdmO5Eb/XcKib3RghehXncrGEywhjlB6n tjm8APA4pin6/POjgMtNtSfs3SNof6rzaKBfadZ5HtC3E3d/W1IJNF8iOkPsMhvuT7Uz r/We4nw0Prfey+RhPQv8OHXxeXaZ5GVhKTkGauqkvO846IJj2DtNQVYYZ/oE00e3rlN9 WTaramnneyTFg0QuC00rtQvnmpL+PH8rEu64ILYWVAirBF6KT+BoFjWAeoHZcai0lBK1 0IYMQ3fn8DSrWH+gq1hW39NO2AVEjFKp3ekiskIeOeQLTi6VZ/vVLYGWgBeH0Ifjtpl2 wnVg==
MIME-Version 1.0
Sender jsf80238@gmail.com
In-Reply-To <oXlGs.986803$yH4.401228@fx03.am4>
References <76529b4c-fbc7-4d6d-89a5-160545448ff2@googlegroups.com> <oXlGs.986803$yH4.401228@fx03.am4>
Date Sun, 6 Jan 2013 14:33:26 -0700
X-Google-Sender-Auth vVzIXf6AkiCxdDmvr1KQhDkKfig
Subject Re: How do you call a function several times in this context??
From Jason Friedman <jason@powerpull.net>
To Alister <alister.ware@ntlworld.com>
Content-Type text/plain; charset=UTF-8
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.185.1357508015.2939.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1357508015 news.xs4all.nl 6871 [2001:888:2000:d::a6]:34177
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:36286

Show key headers only | View raw


> def double(value):
>         result
>         return result
>
> number=input('type a number')
> print (double(int(number)))
>

I think what was meant:

def double(value):
    result = 2 * value
    return result

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

How do you call a function several times in this context?? kofi <ghanashirts4sale@gmail.com> - 2013-01-06 12:26 -0800
  Re: How do you call a function several times in this context?? Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-01-06 12:39 -0800
  Re: How do you call a function several times in this context?? Alister <alister.ware@ntlworld.com> - 2013-01-06 21:23 +0000
    Re: How do you call a function several times in this context?? Jason Friedman <jason@powerpull.net> - 2013-01-06 14:33 -0700
      Re: How do you call a function several times in this context?? Alister <alister.ware@ntlworld.com> - 2013-01-06 22:35 +0000
    Re: How do you call a function several times in this context?? Joel Goldstick <joel.goldstick@gmail.com> - 2013-01-06 17:01 -0500

csiph-web