Python Shell - shell.appspot.com acting weird? or am I missing something?
Google App Engine/1.3.0
Python 2.5.2 (r252:60911, Apr 7 2009, 17:42:26)
[GCC 4.1.0]
>>> mycolors = ['red','green','blue']
>>> mycolors.append('black')
>>> print mycolors
['red', 'green', 'blue']
But the expected result is expected.
['red', 'green', 'blue', 'black']
And also the same with the dictionary data type.
Thanks,
Abhinay
source
share