{"id":5051,"date":"2023-10-26T15:29:52","date_gmt":"2023-10-26T09:59:52","guid":{"rendered":"https:\/\/python-programs.com\/?p=5051"},"modified":"2023-11-10T12:00:47","modified_gmt":"2023-11-10T06:30:47","slug":"python-print-all-values-of-a-dictionary","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-print-all-values-of-a-dictionary\/","title":{"rendered":"Python: Print all Values of a Dictionary"},"content":{"rendered":"

Dictionaries are Python’s implementation of an associative list, which is a data structure. A dictionary is a collection of key-value pairs that are stored together. A key and its value are represented by each key-value pair.<\/p>\n

Given a dictionary, the task is to print all the values of the dictionary.<\/p>\n

Examples:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

dictionary = {'this': 200, 'is': 100, 'BTechGeeks': 300}<\/pre>\n

Output:<\/strong><\/p>\n

200\r\n100\r\n300<\/pre>\n

Display all values of the Dictionary<\/h2>\n

There are several ways to display all the values of the dictionary some of them are:<\/p>\n