Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Set basics
Relationships between sets
Summary
16. Question 1

Instruction

Let's start with Question 1.

Exercise

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.