0
Use of value()
Help in python
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.
+ 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?