'dict_values' object is not subscriptable code example
Example: 'dict_values' object is not subscriptable
a = {"a":"Chocolate","b":"Strawberry"}
print(list(a.keys())[0])
print(list(a.values())[0])
print(list(a.items())[0])
a = {"a":"Chocolate","b":"Strawberry"}
print(list(a.keys())[0])
print(list(a.values())[0])
print(list(a.items())[0])