Monday, May 13, 2013

Print a Python dict sorted alphabetically by key

Need to print your Python dict sorted alphabetically by key? Use sorted.





alternatively:


No comments:

Post a Comment