I have a list of items:
ShelvesToPack = [{'ShelfLength': 2278.0, 'ShelfWidth': 356.0, 'ShelfArea':
759152.0, 'ItemNames': 1},
{'ShelfLength': 1220.0, 'ShelfWidth': 610.0, 'ShelfArea': 372100.0,
'ItemNames': 2},
{'ShelfLength': 2310.0, 'ShelfWidth': 762.0, 'ShelfArea': 1760220.0,
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.
I have installed numpy using the command pip install numpy from command prompt
and I am getting the following error:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import numpy
File
"C:\Users\GP\AppData\Local\Programs\Python\Python35\lib\site-pa
On Thursday, August 18, 2016 at 5:59:43 PM UTC+5:30, Peter Otten wrote:
> GP wrote:
>
> The error and your second snippet aren't compatible, so I assume the
> exception is raised by
>
> > for k in range(0,len(shelf)):
> > q1=ListDictItem[k]
> >
2,'Weight':610,'Quantity':2},{'Item No': 3,'Weight':500,'Quantity':2},{'Item
No': 4,'Weight':484,'Quantity':2}],[{..},...{..}],[{..},...{..}]]
Any suggestion in pointing the error or to improve the code will be appreciated.
Thanks in advance!!
Cheers!
GP
--
https://mail.python.org/mailman/listinfo/python-list