Question: USING PYTHON 3 The letters a, b, d, e, g, o, p and q all have one thing is common: a hole. If you imagine

USING PYTHON 3

The letters a, b, d, e, g, o, p and q all have one thing is common: a hole. If you imagine that the letters were made of stretchy material such as rubber, you could transform one letter into another while preserving the hole. If tearing or gluing are not allowed, no other letter could be transformed by stretching into one of these letters with holes. Mathematicians say that these letters are topologically similar: one set has a hole, the rest do not.

(i) Write a function that takes as an argument a lowercase string and finds the counts of letters in the string with holes and a count of letters without holes.

(ii) Write a function that scratches a word list and prints all the words that have two or more letters with holes.

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!