[Tutor] generating coordinates between two pairs

Jojo Mwebaze jojo.mwebaze at gmail.com
Mon Feb 22 17:03:20 CET 2010


sorry guys, i found a solution, ignore the post

cheers

Johnson

On Mon, Feb 22, 2010 at 4:57 PM, Jojo Mwebaze <jojo.mwebaze at gmail.com>wrote:

> Hello There,
>
> I got two pairs of coordinates say (4,5) and (7,9) from these two pairs i
> would like to generate two lists
>
> [4, 4, 4, 4, 4,    5, 5, 5, 5, 5,    6, 6, 6, 6, 6,    7, 7, 7, 7, 7]
>
> and
>
> [5, 6, 7, 8, 9,    5, 6, 7, 8, 9,    5, 6, 7, 8, 9,   5, 6, 7, 8, 9]
>
> i am actually generating all coordinates that fall within (4,5) and (7,9)
>
> Any help
>
> cheers
>
> Johnson
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100222/f420bc7c/attachment-0001.html>


More information about the Tutor mailing list