split function

Mohammed Altaj mohammed at aims.ac.za
Mon Aug 22 12:19:05 EDT 2005


 Hi All

     I am reading data from file using readlines() to list , my question
is how to deal with space between any two numbers , I mean , my data
looks like
1 3
3 4
5 2
6 1

I tried to with my data as it, but i couldn't , so i removed the spaces
13
34
52
61

But when i deal with large number > 9 !!!! , i tried to use split
function , but doesn't work , I can attach my code if its good idea to do ,,

Thanks














More information about the Python-list mailing list