Dictionaries and frequencies

i a unable to understand how values are being copied in null content_ratings.
in study material …output is different and on python console …answer is different for same code.it is to much confusing ahead in exercises(4/15 and 5/15 in Dictionaries and frequencies)

1 Like

HI @guptashashank552552, welcome to the community!

I’m having trouble understanding your question. Can you please take a look at this guide on how to ask a good question and edit your post? This will make it a lot easier for other community members to understand what you need help with, and hopefully lead to getting an answer. Thanks, look forward to hearing from you!


I was asking about dictionary section…Does sequence of elements in dictionary matters or not

Hi @guptashashank552552,

The sequence of key:value pairs in a dictionary usually don’t matter because unlike lists, we don’t use indices in a dictionary. We use keys to get or set a value in a dictionary.

As your question is unclear, I am not sure whether it helps or not, but here is a post that can help you to understand how can we assign values to an empty dictionary.