Hello Xavier, <br><br>Thank you :)<br><br>Well what Iam trying to generate is that kind of result:<br><br>listn1=['ELM001_DIF', 'ELM001_SPC', 'ELM001_RFL', 'ELM001_SSS', 'ELM001_REFR',
'ELM001_ALB', 'ELM001_AMB', 'ELM001_NRM', 'ELM001_MVE', 'ELM001_DPF',
'ELM001_SDW', 'ELM001_MAT', 'ELM001_WPP']<br><br>listn2 = ['ELM002_DIF', 'ELM002_SPC', 'ELM002_RFL', 'ELM002_SSS', 'ELM002_REFR', 'ELM002_ALB', 'ELM002_AMB', 'ELM002_NRM', 'ELM002_MVE', 'ELM002_DPF', 'ELM002_SDW', 'ELM002_MAT', 'ELM002_WPP']<br>
<br>etc...<br><br>The thing is, the first list will be generated automatically. (so there will be unknow versions of ELM00x....)<br>that why Im trying to figure out how to genere variable and list in an automatic way.<br>
<br>Can you tell me if its not clear please ? :P<br>my english still need improvement when Im trying to explain scripting things.<br><br><div class="gmail_quote">2010/9/1 Xavier Ho <span dir="ltr"><<a href="mailto:contact@xavierho.com">contact@xavierho.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On 2 September 2010 01:11, Alban Nona <span dir="ltr"><<a href="mailto:python.koda@gmail.com" target="_blank">python.koda@gmail.com</a>></span> wrote:<br>
</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello,<br><br><div class="im">seems to have the same error with python.<br>In fact I was coding within nuke, a 2d compositing software (not the best)<br>unfortunately, I dont see how I can use dictionnary to do what I would like to do. <br>
</div></blockquote><div><br>Hello Alban,<br><br>The reason it's printing only the ELM004 elements is because the variable, <span style="font-family: courier new,monospace;">first</span>, is 'ELM004' when your code goes to line 29.<br>
<br>I noticed you're using variables created from the for loop out of its block as well. Personally I wouldn't recommend it as good practice. There are ways around it.<br><br>Could you explain briefly what you want to achieve with this program? What's the desired sample output? <br>
<br>Cheers,<br>Xav<br></div></div>
</blockquote></div><br>