I called it a matrix mostly because this is how I am visualizing it. They are full of numbers but only as representatives of students and schools. It looks like pprint will work after I read the instructions. At least I know where to look now. In the end I need to figure out how to save the data a csv formated for excel but that is for later I was just trying to make it easier to debug my code.<div>
<br clear="all">Thanks<br>Vincent Davis<br>720-301-3003<br>
<br><br><div class="gmail_quote">On Mon, Jan 26, 2009 at 7:03 PM, Robert Kern <span dir="ltr"><<a href="mailto:robert.kern@gmail.com">robert.kern@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d">On 2009-01-26 19:53, Vincent Davis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I do have numpy but am using lists as did not need any functions of<br>
array. Well maybe print now. I am new to python and don't really know<br>
the details about the difference between lists and arrays. I do know<br>
that there are different/additional functions available for arrays.<br>
</blockquote>
<br></div>
Python lists are one-dimensional, appendable sequences of heterogeneous Python objects. numpy arrays are multi-dimensional, non-appendable containers usually of homogeneously-typed numerical data (but can also contain heterogeneous Python objects, too). numpy arrays have many conveniences over lists of lists if you need to do math on bunches of numbers.<div class="Ih2E3d">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Anyway is this the best solution, convert the list to an array before<br>
printing?<br>
</blockquote>
<br></div>
I wouldn't use numpy *just* for this, but I suspect that you could actually use numpy for other things if you are actually using your lists of lists as matrices.<div><div></div><div class="Wj3C7c"><br>
<br>
-- <br>
Robert Kern<br>
<br>
"I have come to believe that the whole world is an enigma, a harmless enigma<br>
 that is made terrible by our own mad attempt to interpret it as though it had<br>
 an underlying truth."<br>
  -- Umberto Eco<br>
<br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br></div>