Question: Subject: Python Coding Function name: sent_compare Parameters: sentence 1, sentence 2 Return: An integer: the number of common unique characters in two sentences Description: You
Subject: Python Coding
Function name: sent_compare
Parameters:
sentence 1, sentence 2
Return:
An integer: the number of common unique characters in two sentences
Description:
You receive two sentences as inputs from the keyboard and compare them. Your function should
be able
to output the number of common unique ch
aracters in two sentences. For example,
sentence 1: "I like Python programming", sentence 2: "I like java", then the output is: 6. (they are:
i, l, k, e, a, and space). It should be case insensitive. To convert a string (s) to a lowercase string,
use s.lower(). For example,
>>> x = 'HELLO'
>>> print x.lower().
hello
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
