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
John, a team member, has completed e0 - agile for beginners he wants to contribute to tcs agile vision. he wants to find out wha
Jet001 [13]

Answer:

John should detail his Scrum Master.

Explanation:

The Team Lead or Scrum Master coordinates the tasks of individual team members and supports the progress of the team. The Scrum Master usually receives instructions from the Product Owner and then ensures that the tasks are performed accordingly.  She also coaches the Development Team and works with the Product Owner to carry out daily development activities.  She also drives the Scrum Values and Principles, ensuring that the team members understand and practice them.

7 0
3 years ago
What are things that need to be considered with respect to the environment when design and construction is occurring?
Law Incorporation [45]

Answer:

If you are destroying the environment or habitats or trees. Also if people live nearby. Also if its legal.

Explanation:

8 0
3 years ago
Need help with these 3 ez questions pls help me will mark brainiest.
shusha [124]
Yikes school tuff but c is wrong
3 0
3 years ago
The force of T = 20 N is applied to the cord of negligible mass. Determine the angular velocity of the 20-kg wheel when it has r
horrorfan [7]

Image of wheel is missing, so i attached it.

Answer:

ω = 14.95 rad/s

Explanation:

We are given;

Mass of wheel; m = 20kg

T = 20 N

k_o = 0.3 m

Since the wheel starts from rest, T1 = 0.

The mass moment of inertia of the wheel about point O is;

I_o = m(k_o)²

I_o = 20 * (0.3)²

I_o = 1.8 kg.m²

So, T2 = ½•I_o•ω²

T2 = ½ × 1.8 × ω²

T2 = 0.9ω²

Looking at the image of the wheel, it's clear that only T does the work.

Thus, distance is;

s_t = θr

Since 4 revolutions,

s_t = 4(2π) × 0.4

s_t = 3.2π

So, Energy expended = Force x Distance

Wt = T x s_t = 20 × 3.2π = 64π J

Using principle of work-energy, we have;

T1 + W = T2

Plugging in the relevant values, we have;

0 + 64π = 0.9ω²

0.9ω² = 64π

ω² = 64π/0.9

ω = √64π/0.9

ω = 14.95 rad/s

4 0
4 years ago
A sheet of steel 2.5 mm thick has nitrogen atmosphere on both sides at 900 oC and is permitted to achieve a steady-state diffusi
DanielleElmas [232]

Answer:

1.8 mm

Explanation:

given data

thick = 2.5 mm

flux = 1 × 10^{-7} kg/m²

high pressure surface is 2 kg/m³

solution

we use fick first law for steady state diffusion

J = D × \frac{Ca - Cb}{Xa - Xb}   ..........1

we take here Ca to point which concentration of nitrogen is 2 kg/m³

so we solve Xb

Xb = Xa + D × \frac{Ca - Cb}{J}

assume Xa = 0 at surface

Xb = 0 + ( 12 × 10^{-11} ) × \frac{2 - 0.5}{1*10^{-7}}

Xb = 1.8 × 10^{-3}

Xb = 1.8 mm

8 0
3 years ago
Other questions:
  • To decrease carbon monoxide production______, is added to the combustion process_________.
    12·1 answer
  • A 6-pole, 50 Hz squirrel cage induction motor has rotor resistance and standstill reactance referred to stator of 0.2 ohm and 1
    7·1 answer
  • The radiator of a steam heating system has a volume of 20 L and is filled with superheated water vapor at 200 kPa and 200°C. At
    7·1 answer
  • What is the mechanical advantage of a pulley with 3 support ropes?
    6·1 answer
  • A cylindrical specimen of Aluminium having a diameter of 12.8 mm and gauge length of 50.8 is pulled in tension. Use the data giv
    5·1 answer
  • What affect results when there is an impact between earth and is astroids check all that apply.
    12·1 answer
  • If coolant is mixed 50-50 with water, what is the freezing point?
    13·1 answer
  • Which of the following about valence electron is correct?
    10·2 answers
  • On the attached image, #7.31. A is a pin
    8·1 answer
  • As a new engineer hired by a company, you are asked evaluate an existing separation process for ethyl alcohol (ethanol) and wate
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!