Hi guys, I need your help please to sold a complicate problem. It is difficult for me to find the solution but in fact, I am sure it is just a few lines of code. The problem is about some kind of multidimensional loop with some test IF. I worked hours on it, but I am a newbie and it is too difficult. I was wondering if a super expert in python could give me a hand. In order to give a maximum of info (explanations + code + screenshot), I prepared a google doc for better understanding. Here in a Facebook post would be too hard to read. https://docs.google.com/document/d/1UQ1-PdU00kQnJCaLJDYHveWyEXLX_5MTv56fwvECb1w/edit?usp=sharing Thanks for help. Have a great evening.