OK, I&#39;m pretty sure this is a fairly novice question, but I&#39;m working a project on my own and my attempts to suss the solution have met with limited success.<br>I&#39;m writing mostly similar code over and over again, bad me.  But I have to be able to return a list/array, and I don&#39;t know if return statement can handle more then just a single variable.  So for example, I realize your generic scenario is <br>
<br>def function()<br>     variable=&quot;whatever&quot;<br>     return(variable)<br><br>newvar=function()<br>print(&quot;newvar&quot;)<br><br>but I want to know is what&#39;s wrong with my logic in this sense:<br><br>def function()<br>
     my_array=[1,2,3]<br>     return(my_array)<br><br>new_array=[(my_array)]<br>for x in new_array:<br>     print(x)<br><br>testing has met with no success obviously.  I&#39;m assuming it&#39;s because an array is not the same thing as a generic variable.  In any case, any suggestions/guidance from folks with experience in programming/python is appreciated.<br>
<br>Bean<br>