saeed added the comment:
OK,
I found My problem,
Thank so much,
There is any way to define them shortly??
--
___
Python tracker
<http://bugs.python.org/issue28
Changes by saeed :
--
status: closed -> open
___
Python tracker
<http://bugs.python.org/issue28594>
___
___
Python-bugs-list mailing list
Unsubscrib
saeed added the comment:
Thank for attention,but see this:
>>> x=y=[]
>>> x=y=[0]*3
>>> x
[0, 0, 0]
>>> y
[0, 0, 0]
>>> y=[0, 1, 1]
>>> x
[0, 0, 0]
>>> y
[0, 1, 1]
>>> y[1]+=1
>>> y
[0, 2, 1]
>>> x
New submission from saeed:
Hi,
I define multi List in a line such as this:
smoke= exercise = cholesterol = angina = stroke = attack = [0] * 2
and This work bad!
if I define later line such this, problem has been solve:
smoke=[0]*2
exercise = [0]*2
cholesterol = [0]*2
angina