You can use : print "aList is "+repr([x,x,x,x,x,x,x,x,x]) -Shambhu
From: levi nie [mailto:levinie...@gmail.com] Sent: 04/07/2012 9:43 AM To: python-list@python.org Subject: a problem about "print" aList is a list.i want to get the output seem this "aList is [x,x,x,x,x,x,x,x,x]" how can i get this? it's wrong when i write this, print "aList is "+[x,x,x,x,x,x,x,x,x]
-- http://mail.python.org/mailman/listinfo/python-list