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
A rectangular channel 2 m wide carries 3 m3 /s of water at a depth of 1.2 m. If an obstruction 40 cm wide is placed in the middl
Marta_Voda [28]

harden you could either me or leave

harden you could either me or leave

Xharden you could either me or leave

harden you could either me or leave

BBB

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED RB

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

harden you could either me or leave

harden you could either me or leave

GO WATCH AFTER OUT NOW RADDED R

8 0
3 years ago
A liquid refrigerant (sg=1,2) is flowing at a weight flow rate of 20,9 N/h. Refrigerant flashes into a vapor and its specific we
Iteru [2.4K]

Answer:

Explanation:

volume of 20.9 N

= 20.9 / 11.5 m³

= 1.8174 m³

In one hour 1.8174 m³ flows

in one second volume flowing = 1.8174 / 60 x 60

= 5 x 10⁻⁴ m³

Rate of volume flow = 5 x 10⁻⁴ m³ / s .

5 0
3 years ago
un contenedor de 0.01m∧3 se llena con 2kg de nitrogeno a una presion de 15mpa ¿cual es la temperatura del nitrogeno?resolver uti
777dan777 [17]
Ecfñnokg pinogdf gabn Etta r
7 0
3 years ago
Wireless technology has made communicating
emmainna [20.7K]

Answer:

Taking as a basis of calculation 100 mol of gas leaving the conversion reactor, draw andcompletely label a flowchart of this process. Then calculate the moles of fresh methanol feed,formaldehyde product solution, recycled methanol, and absorber off-gas, the kg of steamgenerated in the waste-heat boiler, and the kg of cooling water fed to the heat exchangerbetween the waste-heat boiler and the absorber. Finally, calculate the heat (kJ) that must beremoved in the distillation column overhead condenser, assuming that methanol enters as asaturated vapor at 1 atm and leaves as a saturated liquid at the same pressure.

1

SEE ANSWER

Explanation:

6 0
3 years ago
Water flows at low speed through a circular tube with inside diameter of 2 in. A smoothly contoured body of 1.5 in. diameter is
Art [367]

Answer:

Pressure = 11.38 psi

Force = 13.981 Ibf

Explanation:

Step by step solution is in the attached document.

5 0
3 years ago
Other questions:
  • An electronic device dissipating 25 W has a mass of 20 g and a specific heat of 850 J/kg·0K. The device is lightly used, and it
    9·1 answer
  • It is possible to have liquid water at 200°C. a)-True b)- False
    14·1 answer
  • Which part does NOT rotate when the engine is running and the clutch pedal is depressed?
    7·1 answer
  • A coal-fired power plant is burning bituminous coal that has an energy content of 12,000 Btu/lb. The power plant is burning the
    13·1 answer
  • Parallel circuits???
    9·1 answer
  • In a certain balanced three phase system each line current is a 5a and each line voltage is 220v . What is the approximate real
    15·1 answer
  • Can some one help me with this plumbing question. Even just a guess.<br> Plz no shady links
    11·2 answers
  • Ppman2000 Aye Get On Treasure Quest and Join Masons Kingdom :D
    10·1 answer
  • How can statistical analysis of a dataset inform a design process
    8·1 answer
  • New ventures that are based on strategic value, such as valuable technology, are attractive while those with low or no strategic
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!