Re: Problem with List of List

2006-08-26 Thread Kirt
Paul Rubin wrote: > "Kirt" <[EMAIL PROTECTED]> writes: > > Actually here in my code ['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', > > '6'] means: > > 1==> Directory name; > > a,b,c,d=== Filename > > 6 ==> modified time > > > > So i want the out put like: > > Directory name: 1 > > Filenam

Re: Problem with List of List

2006-08-26 Thread Fredrik Lundh
Kirt wrote: >> forgot to mention that the fix is to change the first for statement to: >> >> for x in List[:]: >> >> > Thanx Fredrik Lundh for ur response. I tried ur fix But the output i am > getting is repeated. I'm pretty sure I told you to *loop* over a copy, not *remove* things from

Re: Problem with List of List

2006-08-26 Thread Paul Rubin
"Kirt" <[EMAIL PROTECTED]> writes: > Actually here in my code ['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', > '6'] means: > 1==> Directory name; > a,b,c,d=== Filename > 6 ==> modified time > > So i want the out put like: > Directory name: 1 > Filename:a > modified time:6 Try writing t

Re: Problem with List of List

2006-08-25 Thread Kirt
Kirt wrote: > Fredrik Lundh wrote: > > Fredrik Lundh wrote: > > > > >> I have a code > > >> ==CODE= > > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > > >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > > >> ['2', 'c', '6'], ['2', 'd',

Re: Problem with List of List

2006-08-25 Thread Kirt
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > >> I have a code > >> ==CODE= > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > >> ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], > >>

Re: Problem with List of List

2006-08-25 Thread Kirt
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > >> I have a code > >> ==CODE= > >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > >> ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], > >>

Re: Problem with List of List

2006-08-25 Thread Fredrik Lundh
Fredrik Lundh wrote: >> I have a code >> ==CODE= >> List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], >> ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], >> ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], >> ['3','b', '6'], ['4', 'a', '

Re: Problem with List of List

2006-08-25 Thread Fredrik Lundh
Kirt wrote: > I am a newbie and stuck over this for a week that's unfortunate. > I have a code > ==CODE= > List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], > ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], > ['2', 'c', '6'], ['2', 'd', '6'], [

Problem with List of List

2006-08-25 Thread Kirt
I am a newbie and stuck over this for a week I have a code ==CODE= List=[['1', 'a', '6'], ['1', 'b', '6'], ['1', 'c', '6'], ['1', 'd', '6'],['2', 'a','6'], ['2', 'b', '6'], ['2', 'c', '6'], ['2', 'd', '6'], ['3', 'a', '6'], ['3','b', '6'], ['4', '