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
Yall know what this is called?​
aliya0001 [1]

Answer:

oof no bro

Explanation:

5 0
3 years ago
Pedro holds a heavy science book over his head for 10 minutes. Petro is doing work during that time. True or False
algol [13]

Answer:

True because he is working his arms to lift and hold the weight

Explanation:

4 0
3 years ago
Free brainlist because im new and i just want to but you have t friend me first
Amiraneli [1.4K]
Okay sure.









I’ll 1)chords
2)pulse
3)aerophone
4) the answer is C
5)rhythm

Pretty sure those are the answers
4 0
3 years ago
You have a motor such that if you give it 12 Volt, it will eventually reach a steady state speed of 200 rad/s. If it starts from
Aleksandr [31]

Answer:

a) \frac{Ws}{Es}  = \frac{200}{1+1.2s}

b) attached below

c) type zero system

d) k > \frac{g}{200}

e) The gain K increases above % error as the  steady state speed increases

Explanation:

Given data:

Motor voltage  = 12 v

steady state speed = 200 rad/s

time taken to reach 63.2% = 1.2 seconds

<u>a) The transfer function of the motor from voltage to speed</u>

let ; \frac{K1}{1+St} be the transfer function of a motor

when i/p = 12v then steady state speed ( k1 ) = 200 rad/s , St ( time constant ) = 1.2 sec

hence the transfer function of the motor from voltage to speed

= \frac{Ws}{Es}  = \frac{200}{1+1.2s}

<u>b) draw the block diagram of the system with plant controller and the feedback path </u>

attached below is the remaining part of the detailed solution

c) The system is a type-zero system because the pole at the origin is zero

d) ) k > \frac{g}{200}

7 0
3 years ago
A construction crew lifts approximately 400 lb. of material several times during a day from a flatbed truck to a 25 ft. rooftop.
Irina18 [472]

Answer:

2ib

Explanation:

if you divide 10 divided by 2 it gives you 5 and then subtract it by 2.2 = 2.8

there goes your answer.

5 0
2 years ago
Other questions:
  • Determine the angular acceleration of the uniform disk if (a) the rotational inertia of the disk is ignored and (b) the inertia
    11·1 answer
  • Suppose that a wireless link layer using a CSMA-like protocol backs off 1ms on average. A packet’s link and physical layer heade
    5·1 answer
  • A company specification calls for a steel component to have a minimum tensile strength of 1240 MPa. Tension tests are conducted
    7·1 answer
  • A three-point bending test was performed on an aluminum oxide specimen having a circular cross section of radius 5.0 mm (0.20 in
    13·1 answer
  • Using phasors, the value of 37 sin 50t + 30 cos(50t – 45°) is _________ cos(50t+(_____°)). Please report your answer so the magn
    5·1 answer
  • Whats is the purpose of the stator winding​
    13·1 answer
  • Marie and James are bubbling dry pure nitrogen (N2) through a tank of liquid water (H2O) containing ethane (C2H6). The vapor str
    5·1 answer
  • Does anyone know obamas last name???? please help its for a friend I swear!!!111!!11!
    8·1 answer
  • 6
    10·2 answers
  • There are three homes being built, each with an identical deck on the back. Each deck is comprised of two separate areas. One ar
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!