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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started