Re: Conversion of string to integer

2007-01-30 Thread Thinker
jupiter wrote: > Hi guys, > > I have a problem. I have a list which contains strings and numeric. > What I want is to compare them in loop, ignore string and create > another list of numeric values. > > I tried int() and decimal() but without success. > > eq of problem is > > #hs=string.split(hs)

Re: Conversion of string to integer

2007-01-29 Thread John Machin
On Jan 30, 6:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Jan 29, 2:55 pm, "jupiter" <[EMAIL PROTECTED]> wrote: > > > > > Hi guys, > > > I have a problem. I have a list which contains strings and numeric. > > What I want is to compare them in loop, ignore string and create > > anot

Re: Conversion of string to integer

2007-01-29 Thread [EMAIL PROTECTED]
On Jan 29, 2:55 pm, "jupiter" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a problem. I have a list which contains strings and numeric. > What I want is to compare them in loop, ignore string and create > another list of numeric values. > > I tried int() and decimal() but without success. > >

Re: Conversion of string to integer

2007-01-29 Thread Adam
On Jan 29, 1:55 pm, "jupiter" <[EMAIL PROTECTED]> wrote: > Hi guys, > > I have a problem. I have a list which contains strings and numeric. > What I want is to compare them in loop, ignore string and create > another list of numeric values. You can iterate over the list and use the type() funct

Re: Conversion of string to integer

2007-01-29 Thread Wojciech Muła
jupiter wrote: > I have a problem. I have a list which contains strings and numeric. > What I want is to compare them in loop, ignore string and create > another list of numeric values. > > I tried int() and decimal() but without success. > > eq of problem is > > #hs=string.split(hs) > hs =["popo

Conversion of string to integer

2007-01-29 Thread jupiter
Hi guys, I have a problem. I have a list which contains strings and numeric. What I want is to compare them in loop, ignore string and create another list of numeric values. I tried int() and decimal() but without success. eq of problem is #hs=string.split(hs) hs =["popopopopop","254.25","poj