[Tutor] Print List
Ashley Fowler
afowler2 at broncos.uncfsu.edu
Wed Sep 12 17:36:23 CEST 2012
I am trying to complete the following below:
You also need to write a function "printList" of one parameter that
takes a list as its input and neatly prints the entire contents of the
list in a column. Each student in the list should be printed using __str__.
So far i have:
def printList(lists):
print("First Name\tLast Name\tCredits\tGPA")
for i in lists:
print (i)
Any Suggestions or Corrections?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120912/da162180/attachment.html>
More information about the Tutor
mailing list