great, thanks,&nbsp; i have idle right here, would have been just as easy.<br>sorry about that<br>sk<br><br><div><span class="gmail_quote">On 10/21/06, <b class="gmail_sendername">Bill Campbell</b> &lt;<a href="mailto:bill@celestial.net">
bill@celestial.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Sat, Oct 21, 2006, shawn bright wrote:<br>&gt;<br>
&gt;&nbsp;&nbsp; hey there, i was just wondering if i could get a list back from a<br>&gt;&nbsp;&nbsp; function.<br>&gt;&nbsp;&nbsp; something like<br>&gt;&nbsp;&nbsp; def return_a_list(some_var):<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; some_list = []<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i in range(5):<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var = some_var + i<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; some_list.append(var)<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return some_list<br>&gt;&nbsp;&nbsp; is this cool ?<br><br>Ayup!<br><br>The best way to find answers to questions like this is to just do<br>it, and see what python does.
<br><br>Bill<br>--<br>INTERNET:&nbsp;&nbsp; <a href="mailto:bill@Celestial.COM">bill@Celestial.COM</a>&nbsp;&nbsp;Bill Campbell; Celestial Software LLC<br>URL: <a href="http://www.celestial.com/">http://www.celestial.com/</a>&nbsp;&nbsp;PO Box 820; 6641 E. Mercer Way
<br>FAX:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(206) 232-9186&nbsp;&nbsp;Mercer Island, WA 98040-0820; (206) 236-1676<br><br>``It will be of little avail to the people that the laws are made by men of<br>their own choice if the laws be so voluminous that they cannot be read, or
<br>so incoherent that they cannot be understood.''<br>&nbsp;&nbsp;&nbsp;&nbsp;-James Madison, Federalist Paper #62<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a>
<br><a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>