Q. How are objects stored in lists and dictionaries different?


Answer :-

The objects or values stored in a dictionary can basically be anything (even the nothing type defined as None), but keys can only be immutable type-objects. e.g., strings, tuples, integers, etc.

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post