Quiz Catalog

Catalog of quizzes

lang1 = {"C++", "C", "C#", "Java", "Perl"}

lang2 = lang1.copy()
lang2.update(
  ["C", "Python", "C++",  "JavaScript", "PHP"]
)

print(*lang2.difference(lang1))
'JavaScript' 'PHP' 'Python'
  • set/operation/difference
  • set/operation/update