Emailid
Password
         
  
    Forgot password

New user Sign Up
 

 

How to get python to recognize each elemant as an integer?                             

Author Name Status Posted Time
Dolphi Powers 3/24/2008 4:59:16 AM
Author is Offline

Hi all,

 i'm having a mental block can anyone help me out

if i have a list like this
num = ['1;3;2;3;2;1;4', '\n', '30;2;13;2;1;4;2', '2;3;2;1;4;2;4', '3;2;1;4;2;4;1', '2;1;4;2;4;1;4', '1;4;2;4;1;4;2']

How to get python to recognize each elemant as an integer so that i can sum each list

that is have it print
16
\n
54
18

etc

Thanks in advance

 

Subject Author Status Date

Re: How to get python to recognize each elemant as
an integer?

Samson Reid 3/25/2008 12:15:13 AM

Re: It works well

Dolphi Powers 3/25/2008 12:17:15 AM

Re: See these codes

Samson Reid 3/25/2008 12:18:09 AM

Re: Thanks for breaking it up

Dolphi Powers 3/25/2008 12:19:03 AM
Related Forums
Optimizing Images
Get a Website Template for Free!!!
Get a Website Template for Free!!!
Reply to Hesus!!!
Do You Sell Your Templates on Ebay?





Home | About Us | Site Map | Privacy Policy