Convert Dictionary Values to a List in Python

Converting dictionary values to a list allows you to extract the values and store them as separate elements. In this blog post, we will explore different methods to convert dictionary values to a list in Python.

Method 1: Using the values() Method

Python

Output:

Values as list: [‘John’, 30, ‘New York’]

Method 2: Using Dictionary Comprehension

Python

Output:

Values as list: [‘John’, 30, ‘New York’]