On Sun, Nov 24, 2013 at 8:22 PM, Joel Goldstick
wrote:
> On Sun, Nov 24, 2013 at 8:12 PM, Steven D'Aprano wrote:
>> On Sun, Nov 24, 2013 at 09:33:11PM +0530, Reuben wrote:
>> [...]
>>> From the above output, I see key 'c' is at third position during input, but
>>> while displaying the output it i
On Sun, Nov 24, 2013 at 8:12 PM, Steven D'Aprano wrote:
> On Sun, Nov 24, 2013 at 09:33:11PM +0530, Reuben wrote:
> [...]
>> From the above output, I see key 'c' is at third position during input, but
>> while displaying the output it is displayed at second position
>
> Dictionaries are deliberate
On Sun, Nov 24, 2013 at 09:33:11PM +0530, Reuben wrote:
[...]
> From the above output, I see key 'c' is at third position during input, but
> while displaying the output it is displayed at second position
Dictionaries are deliberately made unordered. That means the order that
items will be displa
On Mon, Nov 25, 2013 at 2:55 AM, Joel Goldstick
wrote:
> On Sun, Nov 24, 2013 at 11:03 AM, Reuben wrote:
>> Hi,
>>
>> ##
>
> new_dict = {'a':10, 'b' :20, 'c': 30,'d' : 40}
>
>
> print new_dict
>> {'a': 10, 'c': 30, 'b': 20, 'd': 40}
On Sun, Nov 24, 2013 at 11:03 AM, Reuben wrote:
> Hi,
>
> ##
new_dict = {'a':10, 'b' :20, 'c': 30,'d' : 40}
print new_dict
> {'a': 10, 'c': 30, 'b': 20, 'd': 40}
>
>
> #
>
>
> From the abo
Hi,
##
>>>
>>> new_dict = {'a':10, 'b' :20, 'c': 30,'d' : 40}
>>>
>>>
>>> print new_dict
{'a': 10, 'c': 30, 'b': 20, 'd': 40}
>>>
#
>From the above output, I see key 'c' is at third position during input, but
while