I'm trying to go thru a file with product codes and rateband prices and quantities
(productcode, pricea, qtya, priceb, qtyb, pricec, qtyc, priced, qtyd, pricee, qtye).
For a certain group of up to 4 productcodes I need to sum up the values of the price cells after testing the qty
fields have the same values.
Because I don't have any experience with python I was wondering what the most elegant way would be to do this in python.
biscayne
0
Light Poster
Recommended Answers
Jump to PostI'm not entirely sure I follow but let's say you have (as in your example) 11 fields separated by commas. You're going to check if the value of the first element (index 0) has one of several values and if so, and if the value of field-x is equal to …
All 4 Replies
rrashkin
41
Junior Poster in Training
biscayne
0
Light Poster
Lardmeister
461
Posting Virtuoso
biscayne
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.