Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print specific key in dictionary python

fruit = {
    "banana": 1.00,
    "apple": 1.53,
    "kiwi": 2.00,
    "avocado": 3.23,
    "mango": 2.33,
    "pineapple": 1.44,
    "strawberries": 1.95,
    "melon": 2.34,
    "grapes": 0.98
}

for key,value in fruit.items():
     print(value)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #print #specific #key #dictionary #python
ADD COMMENT
Topic
Name
8+8 =