dictionary values in python code example
Example 1: dictionary in python
thisdictionary = {'key':'value','key1':'value1'}
print(thisdictionary['key'])
Example 2: py3 dict values
Yes it's the exact same thing in Python 2:
d.values()
In Python 3 (where dict.values returns a view of the dictionary’s values instead):
list(d.values())
Example 3: dict value python
obj = {0:"hello", 1:"there"}
print(obj[0])
print(obj[1])
print("\n\n\n\n\n")
for i in range(len(obj)):
print(obj[i])