On 2:59 PM, Bruce W. wrote:
So, this kind of notation would be different:
args[0][2]
verses args[[0][2]]
the latter is multidimensional. Can you think of example of using
this type of list?
I don't know why this had me a bit confused. I've got to get into
programming more... I had done mo
So, this kind of notation would be different:
args[0][2]
verses args[[0][2]]
the latter is multidimensional. Can you think of example of using this
type of list?
I don't know why this had me a bit confused. I've got to get into
programming more... I had done more in the past.
Bruce
Chriebe
On 9/29/2010 10:32 PM, Bruce Whealton wrote:
Would you, and could you combine a dictionary with a list in this fashion?
A python list is a mutable sequence of Python objects. Extremely mixed
example.
>>> mixed = [1, 1.0, '1', [1], (1,), {1:1}, set((1,)), list, list.append]
>>> mixed.append(m
On Wed, Sep 29, 2010 at 7:32 PM, Bruce Whealton
wrote:
> Hello all,
> I recently started learning python. I am a bit thrown by a certain
> notation that I see. I was watching a training course on lynda.com and this
> notation was not presented. For lists, when would you use what appears
Bruce Whealton wrote:
> For lists, when would
> you use what appears to be nested lists, like:
> [[], [], []]
> a list of lists?
Well, you'd use it when you'd want a list of lists ;)
There's nothing magical about a list of lists, it's just a list with
objects inside like any other, in this case
On 2010-09-30, Bruce Whealton wrote:
> Next, from the documentation I see and this is just an example (this
> kind of notation is seen elsewhere in the documentation:
> str.count(sub[, start[, end]])
> This particular example is from the string methods.
> Is this a nesting of two lists inside a
Hello all,
I recently started learning python. I am a bit thrown by a
certain notation that I see. I was watching a training course on
lynda.com and this notation was not presented. For lists, when would
you use what appears to be nested lists, like:
[[], [], []]
a list of lists?
W