Question: Exercise 7 - Write a Python class called Wordplay. It should have a field that holds a list of words. The user of the

Exercise 7 - Write a Python class called Wordplay. It should have

Exercise 7 - Write a Python class called Wordplay. It should have a field that holds a list of words. The user of the class should pass the list of words they want to use to the class. There should be the following methods: words_with_length (length) - returns a list of all the words of length length. starts with (s)- returns a list of all the words that start with s ends with (s) - returns a list of all the words that end with s palindromes () - returns a list of all the palindromes in the list only (L) - returns a list of the words that contain only those letters in L avoids (L) - returns a list of the words that contain none of the letters - in L

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 Programming Questions!