Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python access key in dictionary

test_dict = {"Geeks" : 1, "for" : 2, "geeks" : 3}
# using in operator to
# get key and value
for i in test_dict :
	print(i, test_dict[i])
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #python #access #key #dictionary
ADD COMMENT
Topic
Name
5+3 =