On Wed, Jul 4, 2012 at 5:28 PM, levi nie <levinie...@gmail.com> wrote:
> aList=str(aList)
> print aList
> print aList[2]

The str() function takes pretty much anything and returns a string.
When you subscript a string, you get characters. It's not a list of
numbers any more.

(Technically str is a class, not a function, but that distinction
doesn't matter.)

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to