i have a 2 sets of lists, the first one is from the spreadsheet which indicates the sizes of pit structures, the other one is a nested list “Pipe Network Sizes”. I tried to create a Python script to match the sizes from the spreadsheet and create a new set of list equivalent to its Part Size using the index. The scripts that i made doesn’t evaluate the “if” statement and always went into the “else” statement and returns all the first index in every set of list.
Can anyone help me or suggest me if my script is right?
this is the pyhton script: