On 1 Apr 2005 03:21:12 -0800, Harlin Seritt <[EMAIL PROTECTED]> wrote:

> num1 = ['1', '4', '5']
> 
> How can I combine the elements in num1 to produce an integer 145?

>>> num1 = ['1', '4', '5']
>>> int(''.join(num1))
145

.    Facundo

Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to