Question: Question 1 Here are 2 sample runs: Write a program that calculates the Similarity score between two people's hobbies. A similarity score is defined as
Question 1 Here are 2 sample runs: Write a program that calculates the Similarity score between two people's hobbies. A similarity score is defined as the number of common interests. Please enter hobbies, separated by spaces. Person 1: skiing rockclimbing drawing Person 2: drawing skiing pumpkins You have 2 hobbies in common The program should take as input 2 strings with hobbies separated with spaces. It should be robust to upper/lowercase, e.g. Please enter hobbies, separated by spaces. Person 1: Snowboarding Rockclimbing TV Person 2: Rockclimbing tv snowboarding You have 3 hobbies in common! Skiing Drawing coding Knitting skating Coding It should output the number of common interests, as shown in the example. 13
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
