[Tutor] string to number

Sean 'Shaleh' Perry shalehperry@attbi.com
Tue, 16 Apr 2002 12:34:15 -0700 (PDT)


On 16-Apr-2002 Jordan, Jay wrote:
> I have a list containing multiple strings which are numbers. [209, 30, 50,
> 123, 40, ...etc]
> 
> I want to use my list but perform numerical operations on the contents but
> it wont let me use INT and the ATOL function keeps comming up as undefined
> even though I have IMPORT STRING at the top of my project. Is there another
> better way to take a string and make it a number?
> 

num = int(str) # easy enough (-: