End of Summer - hours only!Up to 80% off on all courses and bundles.-Close
Set basics
Relationships between sets
16. Question 1


Let's start with Question 1.


You are given a list with responses to the following question:

What is your favorite animal? 

Your task is to create a function named analyze_responses(list). The function should return a tuple with the following three elements, in this order:

  1. The number of responses in the list.
  2. The number of unique responses.
  3. A set containing all unique responses.