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

References <39cf54bd-3772-448a-a56e-74e0b3cc8017@googlegroups.com> <CAPTjJmrLUzbL-tPZh0z7Ep6-BGFTF8pMONzD5sa8=kdWv9bSDA@mail.gmail.com>
Date 2013-08-25 11:54 -0400
Subject Re: Checking homogeneity of Array using List in Python
From Joel Goldstick <joel.goldstick@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.220.1377446073.19984.python-list@python.org> (permalink)

Show all headers | 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