Answers for "traversal dictionary python"

1

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])
Posted by: Guest on December-22-2021

Python Answers by Framework

Browse Popular Code Answers by Language