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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started