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
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
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:
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
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
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
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