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


Groups > comp.lang.python > #95806

Re: Hi am new to python

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!nzpost1.xs4all.net!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.017
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'beginners': 0.09; 'okay': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tends': 0.09; 'python': 0.10; 'python.': 0.11; 'subject:python': 0.14; 'acted': 0.16; 'assignment?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'those,': 0.16; 'url:tutor': 0.16; 'please?': 0.22; 'header:User-Agent:1': 0.26; 'header:X -Complaints-To:1': 0.26; 'question': 0.27; 'function': 0.28; 'tutorial': 0.29; 'that.': 0.30; 'url:mailman': 0.30; "we're": 0.30; 'anyone': 0.32; 'url:python': 0.33; 'url:listinfo': 0.34; 'list': 0.34; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'url:3': 0.60; 'body': 0.61; 'you.': 0.64; 'completed': 0.69; 'sum': 0.69; '_o__)': 0.84; 'homework': 0.84; 'received:125': 0.84; 'specialised': 0.84; 'welcome!': 0.84; 'url:tutorial': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: Hi am new to python
Date Tue, 01 Sep 2015 10:22:32 +1000
References <2b0f07c4-cda8-4bf9-9ef3-b80cccec81a4@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host jigong.madmonks.org
X-Public-Key-ID 0xAC128405
X-Public-Key-Fingerprint 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)
Cancel-Lock sha1:ZxNmWbnbo2GEU78ncx/SoUphDVY=
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.26.1441066967.23514.python-list@python.org> (permalink)
Lines 25
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1441066967 news.xs4all.nl 23763 [2001:888:2000:d::a6]:34353
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3774
X-Received-Body-CRC 182906966
Xref csiph.com comp.lang.python:95806

Show key headers only | View raw


Chubasco Diranga <alpharulz@gmail.com> writes:

> Can anyone please help me with the following please?

Welcome!

Is this a homework assignment? It's okay to ask for help with those, but
we're not going to do the work for you.

> My question is in a while loop; how do l sum all the numbers in the
> given list (list_a)?

There is a built-in function to do that. Have you completed the Python
tutorial <URL:https://docs.python.org/3/tutorial/>?

You may also want to participate in the ‘tutor’ forum for Python
<URL:https://mail.python.org/mailman/listinfo/tutor> which is
specialised to help beginners in Python.

-- 
 \      “Reichel's Law: A body on vacation tends to remain on vacation |
  `\            unless acted upon by an outside force.” —Carol Reichel |
_o__)                                                                  |
Ben Finney

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


Thread

Hi am new to python Chubasco Diranga <alpharulz@gmail.com> - 2015-08-31 16:27 -0700
  Re: Hi am new to python Ian Kelly <ian.g.kelly@gmail.com> - 2015-08-31 17:34 -0600
  Re: Hi am new to python Emile van Sebille <emile@fenx.com> - 2015-08-31 16:36 -0700
  Re: Hi am new to python Chris Angelico <rosuav@gmail.com> - 2015-09-01 10:01 +1000
  Re: Hi am new to python Ben Finney <ben+python@benfinney.id.au> - 2015-09-01 10:22 +1000

csiph-web