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
arlik [135]
3 years ago
13

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.
Computers and Technology
1 answer:
postnew [5]3 years ago
4 0

Answer:

Python 3 code used below

Explanation:

def word_extraction(sentence,letter)

  //splitting the sentence into individual words

  words=sentence.split()

  for word in words:

//This will take care of the word in lower

      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
An automotive engine’s camshaft rotates?
ryzh [129]
<span>C. The same speed as the crankshaft..... hope this helps!
</span>
8 0
3 years ago
What kind of table is a pasted Word table that can be edited with Word from within PowerPoint without changing the data in your
igomit [66]

D. Integrated

Or

A. Embedded

7 0
3 years ago
Read 2 more answers
You manage a Ruby on Rails application that lives on a cluster of EC2 instances. Your website occasionally experiences brief, st
KIM [24]

Answer:

Option D Use Amazon SQS to decouple the application components and keep the requests in queue until the extra Auto-Scaling instances are available.

Explanation:

Amazon SQS is a service that user to decouple the application components and keep the request in queue. This is useful to ensure the distribution of message can be done more reliably and without losing the message. Amazon SQS increase the system fault tolerance. Multiple duplicated copies of the message will be stored across several availability zones to ensure the message are always available whenever it is needed.

5 0
4 years ago
Don't Answer if you are going to give me a link! Don't Waste My Points!
svp [43]

Answer:

D. Childrens Toys and brigh colored rugs

Explanation:

It is because they mentioned that it was for children and they already have bright furniture, so it only makes sense.

3 0
3 years ago
You are given the following segment of code:Line 1: PROCEDURE printScorePairs()Line 2: {Line 3: count &lt;-- 0Line 4: sum &lt;--
Zolol [24]

Answer:

Move Line 10 to after line 12

Explanation:

Required: Modify the program

From the procedure above, the procedure prints the sum at each loop. Unless it is really necessary, or it is needed to test  the program, it is not a good practice.

To optimize the program, simply remove the line at displays the sum (i.e. line 10) and place it at the end of the loop.

So, the end of the procedure looks like:

<em>Line 10: i <-- i 2 </em>

<em>Line 11: } </em>

<em>Line 12: DISPLAY ( sum )</em>

<em>Line 13: </em>

3 0
3 years ago
Other questions:
  • Describe network in terms of the class computer lab
    14·1 answer
  • The U.S. continues to become more dependent on the global domain within the information environment consisting of the interdepen
    14·1 answer
  • Ok so another weird question! So if you know what google drive is and how to upload a video why does it keep adding hours! it ke
    11·1 answer
  • can An intelligent workplace uses technology to allow workers to be productive whether they are in the office or working from ho
    12·1 answer
  • What can be done to improve the security of business uses of the Internet? Give several examples of ecurity measures and technol
    9·1 answer
  • Consider the classes below: public class TestA { public static void main(String[] args) { ​ int x = 2; ​ int y = 20 ​ int counte
    6·1 answer
  • Select the correct answer from each drop-down menu.
    10·2 answers
  • Write down the characterizations that best suits the term Java applets?
    7·1 answer
  • The programming interface for a legacy motor controller accepts commands as binary strings of variable lengths.
    15·1 answer
  • The ____ line for any e-mail messages you write should clearly state the intention of the e-mail..
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!