Question: Exercise 6 . 4 . 1 Owls = = = = = = = = = = = = = = = = = =
Exercise Owls
Your friend really likes talking about owls. Write a function owlcount that takes a block of text and counts how many words they say have word "owl" in them. Any word with "owl" in it should count, so "owls," "owlette," and "howl" should all count.
Here's what an example run of your program might look like:
text "I really like owls. Did you know that an owl's eyes are more than twice as big as the eyes of other birds of comparable weight? And that when an owl partially closes its eyes during the day, it is just blocking out light? Sometimes I wish I could be an owl."
owlcounttext
#
Hints
You will need to use the split method!
# this function should return the number of words that contain "owl"!
def owlcounttext:
return
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
