0

Use of value()

Help in python

10th Apr 2021, 5:24 PM
Codemurai
Codemurai - avatar
2 Answers
+ 1
# value() may be an user defined function? However there is an dict.values() listing the dictionary values: dict = {"a": 11, "b": 22, "c": 33} print(list(dict.values())) # [11, 22, 33] # Output.
10th Apr 2021, 5:36 PM
Per Bratthammar
Per Bratthammar - avatar
+ 1
Why do you need single value function, furthermore, built-in??? dict["a"] this kind of getting value of the key not acceptable for you?
10th Apr 2021, 6:37 PM
Shadoff
Shadoff - avatar