1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Andrews [41]
3 years ago
9

Your friend really likes talking about owls. Write a function owl_count that takes a block of text and counts how many words the

y 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."
owl_count(text)
# => 4
Hints

You will need to use the split method!


Here is what I have so far, it doesn not like count = 0 and i keep getting an error.
def owl_count(text):

count = 0

word = 'owl'

text = text.lower()

owlist = list(text.split())

count = text.count(word)


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."
print (count)
Computers and Technology
1 answer:
andriy [413]3 years ago
4 0
Text = “ I really like owls. Did you know that an owls 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.

word = ‘owl’
texts = text.lower()
owlist = list(texts.split())
count = text.count(word)
num = [owlist, count] #num has no meaning just random var
print(num)


Alter in anyway you want so that you can succeed. ✌
You might be interested in
Does any body know how to bypass easy anti cheat on crossout
dolphi86 [110]

Answer:

It is very hard as easy anticheat is the leading anticheat right now, you can do some web surfing and maybe find out.

6 0
2 years ago
select the correct answer from each drop-down menu. “To clean a computer screen, use ___. To clean a keyboard, use a ___.”
ivanzaharov [21]

Answer:

screen - soft cloth

keyboard - paintbrush

6 0
2 years ago
Cómo se puede evitar que desparescan los recursos de la zona de Michoacán
Aliun [14]
This should be put in the Spanish section <span />
8 0
3 years ago
After successful unit testing, the subsystems are combined to test the entire system as a complete entity using what form of tes
Maurinko [17]

Answer:

integration testing

Explanation:

Integration testing -

It is one of the level of testing a software , in which the individual units are tested and combined as a group , is referred to as integration testing.

This method is employed in order to highlight any faults in between the integrated units .  

Hence , from the given information of the question,

The correct term is integration testing.

8 0
3 years ago
This technology is used to produce high-quality documents that look good on the computer screen and in print. wiki presentation
Virty [35]

Answer:

The Answer is Desktop Publishing.

Explanation:

Desktop publishing software is one of the tools used by graphic designers as well as non-designers.

It helps in designing visual displays such as brochures, posters, visiting cards, web pages, and desktop printing.

Example:

Corel Draw

Corel Ventura

5 0
3 years ago
Other questions:
  • #A year is considered a leap year if it abides by the #following rules: # # - Every 4th year IS a leap year, EXCEPT... # - Every
    5·1 answer
  • You browsing internet and you realize that its not responding what do you do with out rebooting the computer
    10·1 answer
  • In programming, what is a floating-point number?<br>​
    7·1 answer
  • If someone receives a shock, or a piece of equipment is throwing sparks or arcing you should try to pull them away from the sour
    7·1 answer
  • Which implementation has the worst time complexity?
    5·1 answer
  • One page of content in a PowerPoint presentation is referred to as a
    12·1 answer
  • Which operating system is a version of Linux?​
    13·1 answer
  • I need help also this counts as my second giveaway and last for today
    12·2 answers
  • How many voltage values can be represented with a 10-bit binary code?
    15·1 answer
  • Have some points part 6<br>anyone know how to change my username?​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!