Re: easy but difficult

2007-10-16 Thread Bruno Desthuilliers
Paul McGuire a écrit : > On Oct 16, 5:46 am, "Amit Khemka" <[EMAIL PROTECTED]> wrote: > (snip) > Another technique that helps improve script readability is to assign > the results of the split into separate variables, instead of just a > list. This way you can refer to the items with meaningful n

Re: easy but difficult

2007-10-16 Thread Paul McGuire
On Oct 16, 5:46 am, "Amit Khemka" <[EMAIL PROTECTED]> wrote: > On 10/16/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > > > > > > > hi everybody, > > I have a file separated by hash: > > as shown below, > > file: > > A#1 > > B#2 > > A#2 > > A#3 > > B#3 > > > I need the result like this: > > A 1

Re: easy but difficult

2007-10-16 Thread Paul McGuire
On Oct 16, 5:42 am, "Francesco Guerrieri" <[EMAIL PROTECTED]> wrote: > On 10/16/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > > > > > > > hi everybody, > > I have a file separated by hash: > > as shown below, > > file: > > A#1 > > B#2 > > A#2 > > A#3 > > B#3 > > > I need the result like this:

Re: easy but difficult

2007-10-16 Thread Amit Khemka
On 10/16/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > hi everybody, > I have a file separated by hash: > as shown below, > file: > A#1 > B#2 > A#2 > A#3 > B#3 > > I need the result like this: > A 1#2#3 > B 2#3 > > how will generate the result like this from the above file > can somebody tell

Re: easy but difficult

2007-10-16 Thread Francesco Guerrieri
On 10/16/07, Beema shafreen <[EMAIL PROTECTED]> wrote: > hi everybody, > I have a file separated by hash: > as shown below, > file: > A#1 > B#2 > A#2 > A#3 > B#3 > > I need the result like this: > A 1#2#3 > B 2#3 > > how will generate the result like this from the above file > can somebody tell

Re: easy but difficult

2007-10-16 Thread Matthieu Brucher
Hi, Use write() instead of print Matthieu 2007/10/16, Beema shafreen <[EMAIL PROTECTED]>: > > hi everybody, > I have a file separated by hash: > as shown below, > file: > A#1 > B#2 > A#2 > A#3 > B#3 > > I need the result like this: > A 1#2#3 > B 2#3 > > how will generate the result like this

easy but difficult

2007-10-16 Thread Beema shafreen
hi everybody, I have a file separated by hash: as shown below, file: A#1 B#2 A#2 A#3 B#3 I need the result like this: A 1#2#3 B 2#3 how will generate the result like this from the above file can somebody tell me what i have to do.. My code: fh =open('abc_file','r') for