Re: [Tutor] operations on lists

2016-04-17 Thread Ondřej Rusek
marcus lütolf píše v St 13. 04. 2016 v 21:41 +0200: > Hello experts > > I'am working exercise 5. of 'Practical Programming 2nd edition, .using > Python 3' (operations on lists). > The following code get's me wrong results: > > >>> metals = [['beryllium', 4],['magnesium', 12], ['calcium', 20

Re: [Tutor] operations on lists

2016-04-16 Thread Danny Yoo
On Wed, Apr 13, 2016 at 12:41 PM, marcus lütolf wrote: > Hello experts > > I'am working exercise 5. of 'Practical Programming 2nd edition, .using > Python 3' (operations on lists). > The following code get's me wrong results: > metals = [['beryllium', 4],['magnesium', 12], ['calcium', 2

Re: [Tutor] operations on lists

2016-04-16 Thread Alan Gauld
On 13/04/16 20:41, marcus lütolf wrote: > Hello experts > > I'am working exercise 5. of 'Practical Programming 2nd edition, .using > Python 3' (operations on lists). > The following code get's me wrong results: > metals = [['beryllium', 4],['magnesium', 12], ['calcium', 20], ['st

[Tutor] operations on lists

2016-04-16 Thread marcus lütolf
Hello experts I'am working exercise 5. of 'Practical Programming 2nd edition, .using Python 3' (operations on lists). The following code get's me wrong results: >>> metals = [['beryllium', 4],['magnesium', 12], ['calcium', 20], >>> ['strontium', 38], ['barium', 56], ['radium', 88]] >>> max