Re: Is there an meaning of '[[]]' in a list?

2015-11-25 Thread Antoon Pardon
Op 23-11-15 om 09:57 schreef Peter Otten: > Quivis wrote: > >> On Thu, 19 Nov 2015 12:40:17 +0100, Peter Otten wrote: >> >>> those questions that are a little harder >> And just how is he going to determine what is hard? > Note that I said "a little harder", not "hard". > > Write down your next

Re: Is there an meaning of '[[]]' in a list?

2015-11-23 Thread Peter Otten
Quivis wrote: > On Thu, 19 Nov 2015 12:40:17 +0100, Peter Otten wrote: > >> those questions that are a little harder > > And just how is he going to determine what is hard? Note that I said "a little harder", not "hard". Write down your next ten or so questions, then work through the tutorial

Re: Is there an meaning of '[[]]' in a list?

2015-11-22 Thread Joel Goldstick
On Sun, Nov 22, 2015 at 6:25 PM, Quivis wrote: > On Thu, 19 Nov 2015 12:40:17 +0100, Peter Otten wrote: > > > those questions that are a little harder > > And just how is he going to determine what is hard? > -- > _ __ __ __ __ __ __ __ > (( )) || || || \\ //

Is there an meaning of '[[]]' in a list?

2015-11-19 Thread fl
Hi, In the previous exercises, I see list: cc=[[],[],[]] Then, I can have this: ccc=[[[]],[[]],[[]]] I can also have ccc[0] Out[158]: [[]] ccc[0]='o' ccc Out[163]: ['o', [[]], [[]]] I have question: Is there any difference between [[]] and []? [[]] can have deeper assignment and use than

Re: Is there an meaning of '[[]]' in a list?

2015-11-19 Thread Nagy László Zsolt
> I have question: Is there any difference between [[]] and []? Yes. [] - a list with zero elements. That is an empty list. [[]] - A list with one element. (That element is an empty list.) > [[]] can have deeper assignment and use than You can have it as deep as you want, if you have enough

Re: Is there an meaning of '[[]]' in a list?

2015-11-19 Thread Peter Otten
fl wrote: > Hi, > In the previous exercises, I see list: > cc=[[],[],[]] > > Then, I can have this: > > ccc=[[[]],[[]],[[]]] > > I can also have > > ccc[0] > Out[158]: [[]] > > ccc[0]='o' > > ccc > Out[163]: ['o', [[]], [[]]] > > > I have question: Is there any difference between [[]] and

Re: Is there an meaning of '[[]]' in a list?

2015-11-19 Thread Mark Lawrence
On 19/11/2015 11:28, fl wrote: Hi, In the previous exercises, I see list: cc=[[],[],[]] Then, I can have this: ccc=[[[]],[[]],[[]]] I can also have ccc[0] Out[158]: [[]] ccc[0]='o' ccc Out[163]: ['o', [[]], [[]]] I have question: Is there any difference between [[]] and []? [[]] can have