Question: Need help with Python code I'm stuck on! I think I need to use the text.split() and maybe a for loop like for index,

Need help with Python code I'm stuck on!

Need help with Python code I'm stuck on! I think I need

I think I need to use the text.split() and maybe a for loop like " for index, value in enumerate(my_list): " but I'm just not sure how to go about this one and it's the first time we are using enumerate and split with lists. Thank you for any help you can provide!

Exercise 7.3.7: Owls 5 points Your friend really likes talking about owls. Write a function owl_count 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 twic e 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? Somet imes I wish I could be an owl." owl_count(text) # => 4 Hints You will need to use the split method

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!