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


Groups > comp.lang.python > #66922

Re: Functions help

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.042
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'python,': 0.02; 'tutorial': 0.03; 'subject:help': 0.08; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'toolkit': 0.09; 'python': 0.11; "children's": 0.16; 'finney': 0.16; 'grasp': 0.16; 'helps!': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'url:tutor': 0.16; 'example': 0.22; 'header:User-Agent:1': 0.23; 'question': 0.24; 'help!': 0.26; 'header:X-Complaints-To:1': 0.27; 'function': 0.29; 'url:mailman': 0.30; 'end,': 0.31; 'writes:': 0.31; 'url:python': 0.33; 'basic': 0.35; 'there': 0.35; 'functions.': 0.36; 'received:com.au': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; 'next': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'should': 0.36; 'ben': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'url:mail': 0.40; 'hope': 0.61; 'free': 0.61; 'forum': 0.61; 'url:3': 0.61; 'first': 0.61; 'times': 0.62; 'our': 0.64; 'teaching': 0.64; 'telling': 0.64; 'more': 0.64; 'skip:\xe2 10': 0.65; 'techniques': 0.66; 'lives': 0.74; 'walk': 0.74; 'received:125': 0.84; 'twelve': 0.84; '\xe2\x80\x9cwe': 0.84; '8bit%:33': 0.91; 'thoroughly': 0.91; 'scott': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Functions help
Date Sun, 23 Feb 2014 18:59:15 +1100
References <9E019BD7-4C9D-4DED-A626-22BF474CC7F8@cox.net>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host vmx15867.hosting24.com.au
X-Public-Key-ID 0xBD41714B
X-Public-Key-Fingerprint 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:gNpQJBITtvdW8CJ8NzgIMD8cxFU=
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 <https://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 <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7277.1393142369.18130.python-list@python.org> (permalink)
Lines 28
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393142369 news.xs4all.nl 2896 [2001:888:2000:d::a6]:37558
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:66922

Show key headers only | View raw


Scott W Dunning <swdunning@cox.net> writes:

> I had a question regarding functions.  Is there a way to call a
> function multiple times without recalling it over and over.

You should ask question like this on the “python-tutor” forum. I say
that because this question suggests you have yet to learn about basic
Python features like loops.

My recommendation is that you work your way thoroughly through the
Python tutorial <URL:http://docs.python.org/3/tutorial/>, doing each
example and experimenting to understand it before progressing.

By the end, you will have a much more comprehensive grasp of the basics
of Python, and have a toolkit of concepts and techniques for addressing
questions like the above.

> Thanks for any help!

Hope that helps! Feel free to ask for help on the Tutor forum
<URL:https://mail.python.org/mailman/listinfo/tutor>.

-- 
 \           “We spend the first twelve months of our children's lives |
  `\          teaching them to walk and talk and the next twelve years |
_o__)           telling them to sit down and shut up.” —Phyllis Diller |
Ben Finney

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


Thread

Re: Functions help Ben Finney <ben+python@benfinney.id.au> - 2014-02-23 18:59 +1100

csiph-web