Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

traversing dictionary in python

#traversing dictionary function
d={1:'one',2:'two',3:'three',4:'four'}
print(d)
for i in d:
       print(i,d[i])
 
PREVIOUS NEXT
Tagged: #traversing #dictionary #python
ADD COMMENT
Topic
Name
9+1 =