<div class="gmail_quote">On Fri, Dec 18, 2009 at 3:46 PM, Rami Chowdhury <span dir="ltr"><<a href="mailto:rami.chowdhury@gmail.com">rami.chowdhury@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, Dec 18, 2009 at 10:55, Victor Subervi <<a href="mailto:victorsubervi@gmail.com">victorsubervi@gmail.com</a>> wrote:<br>
> Hi;<br>
> I have this code:<br>
><br>
>     i = 0<br>
>     nameNos = []<br>
>     nos = []<br>
>     for option in ourOptions():<br>
>       nameNos.append('optionNo%d' % i)<br>
>       nos.append(i)<br>
>       i += 1<br>
><br>
> The idea is that through every iteration of option, I can create a new<br>
> variable such as 'optionNo0', 'optionNo1' etc and assign values such as '0',<br>
> '1' etc to them.<br>
<br>
</div>What are you expecting to do with those variables and values later?<br></blockquote><div><br>:-} I discovered after I wrote this that all I had to do was use the length of ourOptions. But it's an interesting academic question for future reference ;/<br>
V<br></div></div>