It helped, Thanks

On Wed, Jun 16, 2010 at 10:39 AM, Robert Kern <robert.k...@gmail.com> wrote:

> On Wed, Jun 16, 2010 at 12:30, Vishal Rana <ranavis...@gmail.com> wrote:
> > Robert,
> > Do I have to repeat it for each element in the list or is there a way I
> can
> > iterate the list and do it?
>
> new_list = [x[-10:] for x in old_list]
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
>  -- Umberto Eco
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to