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
Q.17) A 50-acre catchment containing cropland is converted ot a Qatar mail
Ghella [55]

Answer:

Option D

Explanation:

A post development hydrograph will have lower concentration time and lower infiltration losses and hence sooner peak and higher peak and more runoff or higher area under graph. Therefore, all the answers are correct hence option D

3 0
3 years ago
What line separates two lanes traveling in the same direction
soldier1979 [14.2K]

Answer:

White lane lines separate lanes of traffic moving in the same direction. (UK)

5 0
2 years ago
Read 2 more answers
The Chinese had a toy helicopter some 1000 years ago. True Or False ?
Vadim26 [7]

Answer:

f

Explanation:

for the lazy people

5 0
3 years ago
An automotive fuel has a molar composition of 85% ethanol (C2H5OH) and 15% octane (C8H18). For complete combustion in air, deter
slava [35]

Answer:

a) 1

b) 1813.96 MJ/kmol

c) 32.43 MJ/kg ,  1980.39 MJ/Kmol

Explanation:

molar mass of  ethanol (C2H5OH) = 46 g/mol

molar mass of   octane (C8H18) = 114 g/mol

therefore the moles of ethanol and octane

ethanol =  0.85 / 46

octane = 0.15 / 114

a) determine the molar air-fuel ratio and air-fuel ratio by mass

attached below

mass of air / mass of fuel = 12.17 / 1 = 12.17

b ) Determine the lower heating value

LHV  of  ( C2H5OH) = 26.8 * 46 = 1232.8 MJ/kmol

LHV  of (C8H18). = 44.8 mj/kg * 114 kg/kmol = 5107.2 MJ/Kmol

LHV ( MJ/kmol)  for fuel mixture = 0.85 * 1232.8 + 0.15 * 5107.2 = 1813.96 MJ/kmol

c) Determine higher heating value  ( HHV )

HHV of (C2H5OH) = 29.7 * 46 = 1366.2 MJ/kmol

HHV of C8H18 = 47.9 MJ/kg * 114 = 5460.6 MJ/kmol

HHV  in MJ/kg  = 0.85 * 29.7 + 0.15 * 47.9  = 32.43 MJ/kg

HHV in  MJ /kmol  =  0.85 * 1366.2 + 0.15 * 5460.8 = 1980.39 MJ/Kmol

4 0
3 years ago
DO you of you guys know about Any Anmial rights it is for a resercah project
gizmo_the_mogwai [7]

Explanation:

Sure! I'll give you the definition to start off-

The right of animals to be free from exploitation, domination and abuse by humans. Free-living Animals & Their Environment; To live free, animals need a place to live. Wildlife Law Program; The Wildlife Law Program focuses on the defense of wildlife and their habitats throughout the world.

Here are some examples of companies for Animal Advocates for inspiration.

PETA – People for the Ethical Treatment of Animals

International Fund for Animal Welfare – IFAW

Cincinnati Zoo & Botanical Garden

Here are some of the basic rights of animals.

- No experiments on animals.

- No breeding and killing animals for food or clothes or medicine.

- No use of animals for hard labor.

- No selective breeding for any reason other than the benefit of the animal.

- No hunting.

- No zoos or use of animals in entertainment.

4 0
3 years ago
Other questions:
  • Explain how a CO2 cartridge powers the dragster you will be building. A good website to use is How Stuff Works. (howstuffworks.c
    5·2 answers
  • Air enters a compressor operating at steady state with pressure of 90 kPa, at a temperature of 350 K, and a volumetric flow rate
    13·1 answer
  • PythonA group of statisticians at a local college has asked you to create a set of functionsthat compute the median and mode of
    9·1 answer
  • A town is designing a rectangular, 4m deep settling tank for treating surface water intake. The tank will have a flow velocity o
    14·1 answer
  • 2. One of the many methods used for drying air is to cool the air below the dew point so that condensation or freezing of the mo
    12·1 answer
  • Heat is applied to a rigid tank containing water initially at 200C, with a quality of 0.25, until the pressure reaches 8 MPa. De
    8·1 answer
  • Heating of Oil by Air. A flow of 2200 lbm/h of hydrocarbon oil at 100°F enters a heat exchanger, where it is heated to 150°F by
    7·1 answer
  • Pointssss 100 and brainliest :)
    5·1 answer
  • Valorant Or Csgo? which is best in your opinion?
    9·2 answers
  • On a day in which the local atmospheric pressure is 99.5 kPa, answer each of the following: (a) Calculate the column height of m
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!