Python, convert an integer into an index?

paul.hermeneutic at gmail.com paul.hermeneutic at gmail.com
Thu Sep 24 10:36:12 EDT 2015


Good idea.

>>> [int(x) for x in str(results)]
[1, 2, 3]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150924/443c12dc/attachment.html>


More information about the Python-list mailing list