[Tutor] finding numbers in range of of numbers

Alan Gauld alan.gauld at btinternet.com
Tue Oct 21 11:10:47 CEST 2008


"Srinivas Iyyer" <srini_iyyer_bio at yahoo.com> wrote

> [[10,45],[14,23],[39,73],[92,135]]
>
> I want to identify if any of the items in this list are in range of 
> [5,100]

Sorry, I have no idea what you mean by that. Can you give
an example of passing and failing tests?

For example do any/all of the elements in your sample
list pass the test? If so why?

Often if you think carefullly and specifically about your
requirement the solution will become apparent. And if
you don't you are open to ambiguity and confusion.

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld 




More information about the Tutor mailing list