What is the difference between key and values in a dictionary?


Answer:

The difference between key and values in a dictionary is that the key is the identifier that is used to access the value , while the value is the data that is associated with the key.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.