Quiz Catalog

Catalog of quizzes

shop_list1 = {"apple", "cheese", "milk", "yogurt", "juice"}
shop_list2 = {"banana", "coffee", "cacao", "milk", "tomato", "cheese"}

print(*shop_list1.intersection(shop_list2))
'milk' 'cheese'
  • set/operation/intersection