Question: Python 3.6 Question 13 (2e points) Write a function named symmetry that takes a string, text, as a parameter and returns a dictionary d. Every
Python 3.6

Question 13 (2e points) Write a function named symmetry that takes a string, text, as a parameter and returns a dictionary d. Every letter that is both the first and last letter of some word in text should be a key in d. For example, if text contains the word 'shucks', "s' should be a key in d. The value of 's' in d is the number of words that both begin and end with 's'. The parameter text contains only upper and lower case characters and white space The following is an example of correct output: t - ''The sun did not shine it was too wet to play so We sat in the house all that cold cold wet day I sat there with Sally we sat there we twO and I said how I Wish we had something to do'"' print (symmetry(t))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
