Archana Pandey wrote:
[...]
> A = a + 1 and a += 1 both behave in same way for all data types except
> python Lists
I cannot think of any other mutable data type that supports + but there are
mutable data types that support other augmented assignment operators:
py> a = set("abcd")
py> b = a #
On 25/11/2014 11:44, Archana Pandey wrote:
Hello
I hereby would like to share the problem I have faced regarding python
list implementation :-
As per python documentation python list is mutable data object.
The problem I found with the list is that is behaves differently when we
use ‘+=’ and ‘