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
How high of a column of sae 30 oil would be required to give the same pressure as 700 mm hg?
Rasek [7]

Hoiu-10,4000 mm.

<h3>Is positive pressure good for PC?</h3>
  • A balanced configuration is the most efficient way to cool your pc although it should tend towards a slight positive pressure if you can help it.
  • Tip: As much as it might seem important, the concept of heat rising doesn't have too much of an effect.

To learn more about it, refer

to https://brainly.in/question/413163

#SPJ4

7 0
1 year ago
Can you reduce energy use without compromising people's basic needs (such as opening a car, cooking food, home lighting, electri
Liono4ka [1.6K]

Answer:

   yes

  • electric and/or hybrid cars
  • microwave ovens
  • LED lighting
  • low-power electronics

Explanation:

Advances in technology and changes in social organization have brought about reductions in energy use on many fronts.

  • hybrid/electric vehicles have reduced transportation energy needs
  • microwave ovens have reduced cooking energy needs
  • LED lighting has reduced lighting energy needs
  • low-power electronics have reduced the energy cost of technology and entertainment
  • heat pumps and insulated windows have reduced energy needs for home heating and cooling
  • zoning laws have reduced the need for travel to work and shopping areas
4 0
3 years ago
Select three types of engineering that involve work in inaccessible environments.
Pavel [41]

Answer:

Chemical Engineer,Geological Engineer,Aerospace Engineer

Explanation:

8 0
2 years ago
Read 2 more answers
An experiment to determine the convection coefficient associated with airflow over the surface of a thick stainless steel castin
Maksim231197 [3]

Answer:

h = 375 KW/m^2K

Explanation:

Given:

Thermo-couple distances: L_1 = 10 mm , L_2 = 20 mm

steel thermal conductivity k = 15 W / mK

Thermo-couple temperature measurements: T_1 = 50 C , T_2 = 40 C

Air Temp T_∞ = 100 C

Assuming there are no other energy sources, energy balance equation is:

                                               E_in = E_out

                                        q"_cond = q"_conv

Since, its a case 1-D steady state conduction, the total heat transfer rate can be found from Fourier's Law for surfaces 1 and 2

q"_cond = k * (T_1 - T_2) / (L_2 - L_1) = 15 * (50 - 40) / (0.02 - 0.01)

=15KW/m^2

Assuming SS is solid, temperature at the surface exposed to air will be 60 C since its gradient is linear in the case of conduction, and there are two temperatures given in the problem. Convection coefficient can be found from Newton's Law of cooling:

q"_conv = h * ( T_∞  - T_s ) ----> h = q"_conv / ( T_∞  - T_s )

                                                   h = 15000 W / (100 - 60 ) C = 375 KW/m^2K

4 0
3 years ago
A particle moving on a straight line has acceleration a = 5-3t, and its velocity is 7 at time t = 2. If s(t) is the distance fro
Vikki [24]

Given acceleration a = 5-3t, and its velocity is 7 at time t = 2, the value of s2 - s1 = 7

<h3>How to solve for the value of s2 - s1</h3>

We have

= \frac{dv}{dt} =v't = 5-3t\\\\\int\limits^a_b {v'(t)} \, dt

= \int\limits^a_b {(5-3t)} \, dt

5t - \frac{3t^2}{2} +c

v2 = 5x2 -  3x2 + c

= 10-6+c

= 4+c

s(t) = \frac{5t^2}{2} -\frac{t^3}{2} +3t + c

S2 - S1

=(5*\frac{4}{2} -\frac{8}{2} +3*2*c)-(\frac{5}{2} *1^2-\frac{1^2}{2} +3*1*c)

= 6 + 6+c - 2+3+c

12+c-5+c = 0

7 = c

Read more on acceleration here: brainly.com/question/605631

5 0
2 years ago
Other questions:
  • A driver on a leveltwo-lane highway observes a
    6·1 answer
  • How to solve this question
    11·1 answer
  • Write down the equation for the stoichiometric combustion of propane (C3H8).
    6·1 answer
  • The spring has a stiffness k = 200 N&gt;m and an unstretched length of 0.5 m. If it is attached to the 3-kg smooth collar and th
    12·1 answer
  • Technician A says that 18 gauge AWG wire can carry more current flow that 12 gauge AWG wire. Technician B says that metric wire
    9·1 answer
  • An automobile engine consumes fuel at a rate of 22 L/h and delivers 85 kW of power to the wheels. If the fuel has a heating valu
    8·2 answers
  • Cual es la definición de la distribución de las instalaciones?
    13·2 answers
  • Which of the following is an example of a pulley?
    10·2 answers
  • The following two DC motors are to be compared for certain application:
    13·1 answer
  • Chọn dữ liệu phù hợp và biểu diễn chúng dưới dạng biểu đồ, từ đó cho biết 3 yếu tố
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!