Set operations → union, intersection, difference, symmetric_difference • Membership checking (in)

  1. Write a Python program to find the union of two sets representing students enrolled in two certification courses ?
  2. Write a Python program to find common programming languages known by two students using intersection ?
  3. Write a Python program to identify books available only in Library A using set difference ?
  4. Write a Python program to identify students who participated in only one of two events using symmetric difference ?
  5. Write a Python program to check whether a programming language exists in a set using the `in` operator ?
  6. Write a Python program to verify whether an employee ID exists in a registered employee set ?
  7. Write a Python program to display all unique subjects offered across two semesters using union ?
  8. Write a Python program to identify common customer IDs from two shopping portals ?
  9. Write a Python program to display products available only in Store B ?
  10. Write a Python program to identify unique roll numbers present in exactly one classroom ?
  11. Write a Python program to check whether a user-entered city exists in a travel destination set ?
  12. Write a Python program to compare two datasets and display their union, intersection, and difference ?
  13. Write a Python program to display employees who are working in either the Development or Testing team but not both ?
  14. Write a Python program to identify common elective subjects selected by two students ?
  15. Write a Python program to check whether a specific software package is installed using membership checking ?
  16. Write a Python program to compare software installed on two computers and display common and unique software ?
  17. Write a Python program to identify customers who purchased products from both online and offline stores ?
  18. Write a Python program to display all unique skills possessed by members of two project teams ?
  19. Write a Python program to check whether a user has permission to access a secure resource using membership checking ?
  20. Write a Python program to compare registered courses of two departments and generate a complete set operation report ?
Previous Topic Unordered + unindexed + no duplicates • Adding & removing elements → add(), update(), remove(), discard(), pop(), clear(). Next Topic File Handling: open(), read(), write(), append(), with statement