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


Groups > comp.lang.python > #52978

Re: Checking homogeneity of Array using List in Python

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <joel.goldstick@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.030
X-Spam-Evidence '*H*': 0.94; '*S*': 0.00; 'subject:Python': 0.06; 'list?': 0.07; 'subject:using': 0.09; 'used.': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'suggest': 0.14; 'far)': 0.16; 'iterates': 0.16; 'stuff,': 0.16; 'wrote:': 0.18; 'advance.': 0.19; 'programming': 0.22; 'aug': 0.22; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'values': 0.27; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'function': 0.29; 'chris': 0.29; 'am,': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; '25,': 0.31; 'guess': 0.33; 'could': 0.34; 'problem': 0.35; 'possible.': 0.35; 'problem.': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'acceptable': 0.36; 'subject:List': 0.36; 'list': 0.37; 'thank': 0.38; 'pm,': 0.38; 'how': 0.40; 'easy': 0.60; 'solve': 0.60; 'course': 0.61; 'discuss': 0.62; 'information': 0.63; 'to:addr:gmail.com': 0.65; 'note:': 0.66; 'here': 0.66; 'answer.': 0.68; 'study': 0.69; 'homework': 0.84; 'joel': 0.91; '2013': 0.98
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=rwQwPANc/tBg2LdIJojk0zUEhYWuegxWoqMsaXVCHLY=; b=aoHmYCaE/XrR5ZmGp6VruZhPJx3YIjGMW5/tJz23wlwdR8WxlswBylya44wGmHyEws dy0rF+zhK+jeEb6Xrtl+a2yTJhd+NZWpa7nrGq2CrbDEIWV/tF3/5PsRpEGG+SdkfIk2 WRWLGH5TEB0EkNR6PHr14G3gWpkbZzJ6m7z74KwFfPOyyYOEbxUZe1uQxkUly25nc3V4 IUYsHZF5BV25OBgTb/Md1PblCeUVK++kDf9lV9eVW9+fFkQ1BKuD3aYuJ4WWGq4brLJC LFKh4Yb9CYc/RSLiU8kZBjVTxR/8PFy9AxrA0UrTgjM9W7GJkbM8IHBYhbTjVgJuJ4q2 Nmwg==
MIME-Version 1.0
X-Received by 10.52.34.40 with SMTP id w8mr8645478vdi.7.1377446065553; Sun, 25 Aug 2013 08:54:25 -0700 (PDT)
In-Reply-To <CAPTjJmrLUzbL-tPZh0z7Ep6-BGFTF8pMONzD5sa8=kdWv9bSDA@mail.gmail.com>
References <39cf54bd-3772-448a-a56e-74e0b3cc8017@googlegroups.com> <CAPTjJmrLUzbL-tPZh0z7Ep6-BGFTF8pMONzD5sa8=kdWv9bSDA@mail.gmail.com>
Date Sun, 25 Aug 2013 11:54:25 -0400
Subject Re: Checking homogeneity of Array using List in Python
From Joel Goldstick <joel.goldstick@gmail.com>
To Chris Angelico <rosuav@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <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.220.1377446073.19984.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1377446073 news.xs4all.nl 15986 [2001:888:2000:d::a6]:38337
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:52978

Show key headers only | View raw


On Sun, Aug 25, 2013 at 2:03 AM, Chris Angelico <rosuav@gmail.com> wrote:
> On Sun, Aug 25, 2013 at 3:50 PM,  <sahil301290@gmail.com> wrote:
>> NOTE: NO INBUILT FUNCTION BE USED. Thank you in advance.

You don't make it easy to help you with your homework by leaving out
information about what you have learned so far, and perhaps what you
have tried that doesn't work

Here are some hints:  Do you know what the any and all functions do in
python?  Do you know about list comprehensions or how to write a for
loop that iterates over all of the values in a list?

If you know about that stuff, think how  those skills could be used to
solve your problem.

This problem is so completely contrived that without knowing the
course of your study (what you have learned about python programming
so far) it is really useless to try to guess an acceptable answer.
Let me suggest you discuss this with your classmates if possible.


-- 
Joel Goldstick
http://joelgoldstick.com

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


Thread

Checking homogeneity of Array using List in Python sahil301290@gmail.com - 2013-08-24 22:50 -0700
  Re: Checking homogeneity of Array using List in Python Chris Angelico <rosuav@gmail.com> - 2013-08-25 16:03 +1000
  Re: Checking homogeneity of Array using List in Python Joel Goldstick <joel.goldstick@gmail.com> - 2013-08-25 11:54 -0400
  Re: Checking homogeneity of Array using List in Python Dave Angel <davea@davea.name> - 2013-08-25 20:49 +0000
  Re: Checking homogeneity of Array using List in Python Neil Cerutti <neilc@norwich.edu> - 2013-08-26 13:49 +0000
    Re: Checking homogeneity of Array using List in Python Joshua Landau <joshua@landau.ws> - 2013-08-26 23:39 +0100
      Re: Checking homogeneity of Array using List in Python Neil Cerutti <neilc@norwich.edu> - 2013-08-27 12:03 +0000

csiph-web