Difference between sets and dictionary batch DS301222

Set

  • It is represented with {}
  • Won’t allow duplicate values
  • Items in sets unchangeable but they can add new items and remove items
  • Unordered
  • Unindexed

Dictionary

  • It is represented with {key:value}
  • Won’t allow duplicates of items
  • Mutable
  • Ordered
1 Like

@kinnukeshiya
Nice Explanation.
Keep the good up.

@kinnukeshiya
Good explanation :fire: keep it up
And you can also add: dictionary keys are unique and immutable