[Baypiggies] manipulating lists question
Michiel Overtoom
motoom at xs4all.nl
Thu Dec 5 09:53:10 CET 2013
On Dec 5, 2013, at 09:06, Vikram K wrote:
> Any suggestions on what i have to do to go from x to y?
>
> >>> x = [['cat','NM123',12],['cat','NM234',12], ['dog', 'NM56',65]]
> >>> y = [['cat','NM123, NM234', 12], ['dog', 'NM56', 65]]
Are you sure you mean
[['cat','NM123, NM234', 12], ['dog', 'NM56', 65]]
and not
[['cat','NM123', 'NM234', 12], ['dog', 'NM56', 65]]
?
> >>>
>
> Regards
> Vik
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies
--
Veel spullen zijn tegenwoordig waardeloos, maar toch hecht men er veel waarde aan. Mensen hebben vaak teveel spullen. Hoe komt dat en wat doe je ertegen? - een essay van Paul Graham, op http://www.michielovertoom.com/articles/paul-graham-spullen
"Een prima telefoon met draaischijf weggooien? Die zou ik nog wel eens nodig kunnen hebben!"
More information about the Baypiggies
mailing list