Combining digit in a list to make an integer

Harlin Seritt harlinseritt at yahoo.com
Fri Apr 1 06:21:12 EST 2005


I have the following:

num1 = ['1', '4', '5']

How can I combine the elements in num1 to produce an integer 145?

thanks,

Harlin Seritt




More information about the Python-list mailing list