print a dictionary value code example
Example 1: printing python dictionary values
#print keys and values from the dictionary
for k, v in dic.items():
print(k, v)
Example 2: dictionary in python
shapes={"square": 90, "triangle": 60}
#print keys and values from the dictionary
for k, v in dic.items():
print(k, v)
shapes={"square": 90, "triangle": 60}