Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to get data from dictionary

teas = {
	'english_breakfast': 104,
	'matcha_green_tea': 26,
	'green_tea': 29,
	'decaf_english_breakfast': 51,
	'assam': 48
}

matcha = teas.get('matcha_green_tea')

print(matcha)
Source by careerkarma.com #
 
PREVIOUS NEXT
Tagged: #python #data #dictionary
ADD COMMENT
Topic
Name
7+2 =