Sets creation {} vs set(.

  1. Write a Python program to create a set of programming languages using the `set()` function and display all unique elements ?
  2. Write a Python program to create a set of integers using curly braces `{}` and display the set ?
  3. Write a Python program to demonstrate the difference between an empty dictionary `{}` and an empty set created using `set()` ?
  4. Write a Python program to create a set from a list and remove duplicate values automatically ?
  5. Write a Python program to count the number of unique elements in a set ?
  6. Write a Python program to check whether an element exists in a set ?
  7. Write a Python program to iterate through all elements of a set using a loop ?
  8. Write a Python program to add a new element to a set using the `add()` method ?
  9. Write a Python program to remove an element from a set using the `remove()` method ?
  10. Write a Python program to find the union of two sets ?
  11. Write a Python program to remove duplicate words from a sentence using a set ?
  12. Write a Python program to find symmetric differences between two sets ?
  13. Write a Python program to find common programming languages known by two students using set intersection ?
  14. Write a Python program to create a set of squares from 1 to N using set comprehension ?
  15. Write a Python program to compare two datasets and display common, unique, and symmetric difference values using set operations ?
Previous Topic Dictionaries: Key-value structure, methods (get(), items(), etc.), Practice exercises combining functions, loops, and collections. Next Topic Unordered + unindexed + no duplicates • Adding & removing elements → add(), update(), remove(), discard(), pop(), clear().