Gary Herron <[EMAIL PROTECTED]> wrote:
>
>So in the following code, the list named full does not have 3 copies of
>sub in it, but rather it has 3 *references* to the single list named
>sub.
Since we are being picky here, it's more accurate to say that the list
"full" contains 3 references to the
On Feb 18, 4:53 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
> Brad wrote:
> > Hi folks,
>
> > I'm still fairly new to programming in python and programming in
> > general.
a = [1, 2, 3]
b = a
print a
print b
print
a[0] = 100
print a
print b
--output:--
[1, 2, 3]
[1, 2, 3]
[100, 2, 3]
[100, 2, 3]
Brad wrote:
> Hi folks,
>
> I'm still fairly new to programming in python and programming in
> general. A friend of mine is in a CompSci 101 course and was working
> on a slider game when he encountered a problem. We eventually figured
> out what the problem was and built a test case to help solve
Hi folks,
I'm still fairly new to programming in python and programming in
general. A friend of mine is in a CompSci 101 course and was working
on a slider game when he encountered a problem. We eventually figured
out what the problem was and built a test case to help solve it, but I
can't for the