Quiz Catalog

Catalog of quizzes

fruits = {"apple", "banana", "cherry"}
fruits.add("orange")

print(fruits)
{'orange', 'apple', 'cherry', 'banana'}
  • set/operation/add

fruits = {"apple", "banana", "cherry"}
fruits.add("banana")

print(fruits)
{'cherry', 'banana', 'apple'}
  • set/operation/add