On Tue, 25 Nov 2014 12:20:26 +, Mark Lawrence wrote:
> a=[1,2,3]
binds a to the list [1,2,3]
> b=a
binds b to a
> b+=[4,5]
Changes existing b, which is also a
> x=[1,2,3]
binds x to the list [1,2,3]
> y=x
binds y to x
> y=y+[4,5]
Binds y to a new list which comprises previous y plus
On 11/25/2014 04:23 AM, PANDEY2 Archana (MORPHO) wrote:
Hello
Welcome. This is apparently your first post, or at least first for
quite a while.
Note that this is a text forum (usenet, mailing list), and doesn't
properly support either html messages nor attachments. Just tell your
mailer
On 25/11/2014 11:40, Steven D'Aprano wrote:
PANDEY2 Archana (MORPHO) wrote:
Hello
I hereby would like to share the problem I have found regarding python
list implementation:-
As per python documentation python list is mutable data object.
That problem I found with the list is that is behaves
PANDEY2 Archana (MORPHO) wrote:
> Hello
>
> I hereby would like to share the problem I have found regarding python
> list implementation:-
>
> As per python documentation python list is mutable data object.
>
> That problem I found with the list is that is behaves differently when we
> use '+='
Hello
I hereby would like to share the problem I have found regarding python list
implementation:-
As per python documentation python list is mutable data object.
That problem I found with the list is that is behaves differently when we use
'+=' and '+' '=' operators separately.
For example-