Dictionary is really not easy to handle

jfong at ms4.hinet.net jfong at ms4.hinet.net
Thu Apr 28 07:14:23 EDT 2016


I was overwhelmed that three gurus inspire me in three different ways in their own flavour:-) That's really appreciated! Now I understand why it's so, thanks to all of you.

To Peter:
> With that information, can you predict what

> for k, v in {(1, 2): "three"}: print(k, v)

> will print? 

It's 1 2.

(Although Rustom had given the answer in his reply, I didn't figure out until after reading you and Steven's answers:-)



More information about the Python-list mailing list