Question: USING PYTHON 13-Write a function named symmetry that takes a string text as a parameter and return a dictionary d. Every letter that is both
USING PYTHON 13-Write a function named symmetry that takes a string text as a parameter and return a dictionary d. Every letter that is both the first and last letter of some word in text should b a key in d. for example if text contains the word 'shucks ' ,'s' shold be a key in d.The value of s in d is the numbers of words that both begins and ends with 's'. ( the parameter text contain only lower and upper case character and white spaces.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
