Example & Tutorial understanding programming in easy ways.

How do you traverse through a Dictionary object in Python?


d={1: 'First', 2: 'Second', 3: 'Third'}

for key,val in d.items():

     print("Key is ",key)

     print("Value is",val)


1 First

2 Second

3 Third

Read More →
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!