a problem about "print"

Shambhu Rajak Shambhu.Rajak at kpitcummins.com
Wed Jul 4 08:03:20 CEST 2012

You can use :
print "aList is "+repr([x,x,x,x,x,x,x,x,x])


From: levi nie [mailto:levinie001 at gmail.com]
Sent: 04/07/2012 9:43 AM
To: python-list at 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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20120704/e7ec7ad3/attachment.html>

More information about the Python-list mailing list