I’m trying to compute the carbon footprint of an element and writing it back into an instance parameter.
The code needs to do the following:
Look at the name in the first list and then multiply the corresponding volume value in the second list with the correct factors. I created two lists to be able to better follow the output. The lists represent 3 wall elements, each having various layers and each layer has a material and volume. Eg. Wall 1 will have a conc, steel and timb layer with 5.1 ,5.2 ,5.3 as the respective volumes.
I’m trying to get the for-loops to take an element, determine the impact of that element (stored in results() ) and store the impact of each respective element in the outlist. However, I can’t seem to be getting it to work.
Would really appreciate some help as i’ve been trying to get this to work for days, I’ve got a java coding background but can’t seem to figure this out in python.