Dictionary Get All Values 1

Dictionary Get All Values

hh = {"a":3, "b":4, "c":5}

# get all values
print(hh.values())
# dict_values([3, 4, 5])

Here is what the above code is Doing:
1. We create a dictionary called hh.
2. We print the values of the dictionary.
3. We get the values of the dictionary.

Similar Posts