Understanding While Loop Execution

7stud bbxx789_05ss at yahoo.com
Mon Feb 18 22:00:41 EST 2008


On Feb 18, 4:53 pm, Gary Herron <gher... at islandtraining.com> 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]



More information about the Python-list mailing list