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

Python 3.6 Question 13 (2e points) Write a function named symmetry that

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!