Question: Write a Python program that has the following 3 sets of hobbies listed from three individuals. Anna ( A ) has swimming , running and

Write a Python program that has the following 3 sets of hobbies listed from three individuals. Anna(A) has swimming,running and on-line shopping. Bryan(B) has swimming,taking a nap, and cycling. Chris(C) has running,cycling, and playing chess.
List the all the hobbies from A, B and C
List the all the hobbies that are common between A, B and C
List the all the hobbies that only B has.
List the all the hobbies that are common between A and B.
List the all the hobbies that are common between B and C.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!