Psst! Check what courses we have in our offer, and get them all here to save $727. Tick-tock—this deal ends on 3/21.
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.