Re: convert a int to a list

2006-04-28 Thread James Stroud
Tim Chase wrote: >> >> a = ['spam!', 1, ['Brie', 'Roquefort', 'Pol le Veq'], [1, 2, 3]] >> >> As an exercise, write a loop that traverses the previous list and >> prints the length of each element. What happens if you send an

Re: convert a int to a list

2006-04-28 Thread [EMAIL PROTECTED]
Tim Chase wrote: > > > > a = ['spam!', 1, ['Brie', 'Roquefort', 'Pol le Veq'], [1, 2, 3]] > > > > As an exercise, write a loop that traverses the previous list and > > prints the length of each element. What happens if you sen

Re: convert a int to a list

2006-04-28 Thread Tim Chase
> > a = ['spam!', 1, ['Brie', 'Roquefort', 'Pol le Veq'], [1, 2, 3]] > > As an exercise, write a loop that traverses the previous list and > prints the length of each element. What happens if you send an > integer to len?