On 09/06/2016 04:55 PM, GP wrote:
I have a list:
shelves2 =[{'Part No': '1', 'Length': 610.0, 'Width': 50.0},
{'Part No': '2', 'Length': 2319.0, 'Width': 465.0 },
{'Part No': '3', 'Length': 5.0,'Width': 465.0}]
The length of shelf is calculated as follows:
1. Calculate the max
On Wednesday, September 7, 2016 at 2:55:37 AM UTC+12, GP wrote:
> MaxLengthOfItem_Index =f_LMax(shelves2,MaxLengthOfItem)
MaxLengthOfItem_Index = max(range(len(shelves2)), key = lambda i :
shelves2[i]["Length"])
--
https://mail.python.org/mailman/listinfo/python-list
I have a list:
shelves2 =[{'Part No': '1', 'Length': 610.0, 'Width': 50.0},
{'Part No': '2', 'Length': 2319.0, 'Width': 465.0 },
{'Part No': '3', 'Length': 5.0,'Width': 465.0}]
The length of shelf is calculated as follows:
1. Calculate the maximum length of all items in the shelf.