>
>
>Read my answers to your two previous posts.
>(in short : use str.split() - but *do* read my answers if you want to
>save you a lot of pain)
>
>
>
>
>
>
>
Thanks a lot for your valuable answer, i like the way you code , but i
would like to use my own, so if it is possible for you and if
Dear All
This is my problem again , I tried to sort it out , but i couldn't , I
am reading data from file using readlines , my input like :
0 1 2 4
1 2 4
2 3
3 4
What i am doing is , starting with the first element in the first line (
which is 0 in this case )and do search in the other lines
Dear all
Sorry , I confused between two things , what i said in the last e-mail i
already managed to do using C code , But what i need to do using python
is : my input data :
0 2 3 4
1 2 4
2 3
3 4
what i suppose to do is , using the first line and start searching
number by number ,first i hav
Dear All
What i want to do is , my input is like
0 2
0 3
0 4
1 2
1 4
2 3
3 4
I am comparing and put the number in group , like ,the first three lines
, all has zero as first input for each line, so the out put should look
like
0 2 3 4
and so on
1 2 4
2 3
3 4
I managed to do what i need , but i
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
>
>
>
>
>
>Mohammed Altaj wrote:
>
>
>>Hi All
>>
>>I am having problem with delete line if its belong to another one , example
>>
>>
>
>I think, you mean to
Hi All
Thanks for your reply , what i am doing is , i am reading from file ,
using readlines() , I would like to check in these lines , if there is
line belong to another one or not , if it is , then i would like to
delete it
['0132442\n', '13\n', '24\n']
'13' is already in '0132442'
'24' is al
Hi All
I am having problem with delete line if its belong to another one , example
['0132442\n', '13\n', '24\n']
the 2nd and 3rd are already in the first line , how can do this !!!
Thanks
--
http://mail.python.org/mailman/listinfo/python-list