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
erastova [34]
3 years ago
6

The function below takes two string parameters: sentence is a string containing a series of words separated by whitespace and le

tter is a string containing a single lower case letter. Complete the function to return a string containing one of the words in sentence that contains letter (in either upper case or lower case). Your code should return the word with its capitalization in the original sentence. If there are multiple words in sentence that contain letter, you can return any of them. student.py
Engineering
1 answer:
Eddi Din [679]3 years ago
4 0

Answer:

def extract_word_with_given_letter(sentence, letter):

   words = sentence.split()

   for word in words:

       if letter in word.lower():

           return word

   return ""

# Testing the function here. ignore/remove the code below if not required

print(extract_word_with_given_letter('hello HOW are you?', 'w'))

print(extract_word_with_given_letter('hello how are you?', 'w'))

You might be interested in
Situation: Peter is designing a new hybrid car that functions on solar power. He is currently working on sketches of his design
givi [52]

Answer:

whats the question?

Explanation:

8 0
2 years ago
vertical gate in an irrigation canal holds back 12.2 m of water. Find the average force on the gate if its width is 3.60 m. Repo
DanielleElmas [232]

Answer:

The right solution is "2625 kN".

Explanation:

According to the question,

The average pressure will be:

= density\times g\times \frac{h}{2}

By putting values, we get

= 1000\times 9.8\times \frac{12.2}{2}

= 1000\times 9.8\times 6.1

= 59780

hence,

The average force will be:

= Pressure\times Area

= 59780\times 3.6\times 12.2

= 2625537 \ N

Or,

= 2625 \ kN

5 0
2 years ago
I WILL GIVE 20 POINTS!!
Alex777 [14]

Answer:

Use a resume header

Explanation:

Create a Summary

Research industry, employer keywords

there are some hints okay

5 0
3 years ago
Read 2 more answers
If you are unsure about holding a piece of wood to be drilled, then you should always use a
alisha [4.7K]
C I took construction class
4 0
3 years ago
Carbon nanotubes can be a considered toxic agent due to: (a)- Its ability to produce toxic gases (b)Its ability to penetrate ski
SpyIntel [72]

Answer: b)Its ability to penetrate skin quickly due to its very small diameter

Explanation: Carbon nano tubes(CNT) are the material widely used in the medical field due to the atomic structure of it ans also have small size. Toxicity in the carbon nano tubes is because their small sized atomic particles which can enter the skin by penetration or inhalation. But are still preferred in the medicine because having unique properties like mechanical property, chemical property,surface property etc.

4 0
3 years ago
Other questions:
  • Water flows through two smooth pipes with the same diameter and length as shown below. ipe is twice that through the first-pipe.
    12·1 answer
  • An air-standard Otto cycle has a compression ratio of 6 and the temperature and pressure at the beginning of the compression pro
    13·1 answer
  • The Emergency Stop Button icon on the Inputs toolbar can be used to press or release the Emergency Stop button on the CNC machin
    10·1 answer
  • Following are several z-transforms. For each one, determine inverse z-transform using both the method based on the partial-fract
    10·1 answer
  • A satellite at a distance of 36,000 km from an earth station radiates a power of 10 W from an
    8·1 answer
  • What is the maximum fine for knowingly refilling a disposable refrigerant drum?
    11·1 answer
  • While recharging a refrigerant system, the charging stops before the required amount of refrigerant has been inserted. What shou
    8·1 answer
  • Resistance depends on which three properties of a wire?
    15·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use cases that could serve as a basis for understanding the require
    15·1 answer
  • Tech A says that a mechanical pressure regulator exhausts excess fluid back to the transmission pan. Tech B says that if the tra
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!