Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Access both key and value using items()

dt = {'a': 'juice', 'b': 'grill', 'c': 'corn'}

for key, value in dt.items():
    print(key, value)
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Access #key
ADD COMMENT
Topic
Name
5+9 =