Overview:
- A Python dictionary object with values popualated onto it can be created by calling the constructor dict() with keyword arguments.
- Each keyword argument becomes a key of type string in the newly created dictionary and the value of the keyword argument becomes the value of the key.
Example:
#Example Python program that creates |
Output:
Programming languages and their authors: {'CPlusPlus': 'BjarneStroustrup', 'Python': 'GuidovanRossum', 'Fortran': 'JohnWBackus'} |