Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python Access both key and value without using items()

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

for key in dt:
    print(key, dt[key])
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #python #Access #key
ADD COMMENT
Topic
Name
4+3 =