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
olga nikolaevna [1]
3 years ago
10

Your task is to implement a function replace_once(t, d), that takes a text t and a replacement dictionary d, and returns the res

ult of replacing words according to the dictionary: if a word appears as a key, replace it with the dictionary value, and if a word does not appear in the dictionary, leave it alone.
Given a list of words, you can concatenate them together with spaces in between as follows:
word_list = "I love eating bananas".split()
print("Word list:", word_list)
back_together = " ".join(word_list)
print("Back together:", back_together)
# You can also join them in other ways, btw. Just DON'T do it for this homework.
print("You can also put commas:", ", ".join(word_list))
Computers and Technology
1 answer:
djverab [1.8K]3 years ago
4 0

Answer:

Explanation:

The following code is written in Python and does exactly as requested. It is a function named replace_one(t, d) that takes the two parameters one text/word and one dictionary. If the word is found as a key in the dictionary it places the value in a variable called new_word and returns it to the user, if it is not found then the function returns nothing.

def replace_once(t, d):

   if t in d:

       new_word = d.get(t)

       return new_word

   return

You might be interested in
Complete the following sentence.
dexar [7]

Answer:

arte digital es una forma de arte que utiliza principios de ingeniería como paleta.

Explanation:

8 0
2 years ago
These statements describe a network server.
Art [367]

Answer:

The statement that describes a network server is:

manages network resources

Explanation:

A server is a computer built and programmed to fulfill network needs. They might be able to perform regular computer tasks, but they are designed specially to connect several computers, create a space those computers can share, provide connectivity management to them and be able to receive, send, create, and copy data inside that network. In other words, it creates a space of interaction, allows interaction, and transfer data from this network to other networks and from other networks for its managed network.

4 0
4 years ago
Private void finishMap()
ziro4ka [17]

Answer:

Where can I find Codehs answers?

You can view the solution for an assignment in multiple ways: Through the Assignments page.

...

To view solutions from the Assignments page:

Navigate to the Assignments page.

Click the '...' next to the assignment you wish to view the solution for.

Choose Solution and another page will open with the solution reference.

7 0
3 years ago
What do you think about the argument that word processing reduces the quality of writing?
slava [35]
<span>I believe when you're given a sufficient amount of time you are able to write your thoughts clearly than when you're given a short period of time to answer questions or make an argument on an essay BUT there is a drawback with the tools within the word processing. Word processing comes with a spell check but it does not correct homonyms such as they're, their and there or other homonyms. My experience with word processing is that I always need time to effectively write something and that helps me make less grammatical mistakes when I take my time to write and edit my paper, I guess it all depends on the individual in their writing skills

I hope this helps!
</span>
5 0
4 years ago
Ayuda!!
emmasim [6.3K]

hola no conozco el toldo, pero necesito puntos cerebrales tan lo siento

Explanation:

8 0
3 years ago
Other questions:
  • RDBMS stands for_________________
    12·1 answer
  • If you want to find out the specific questions you answered incorrectly on a particular examination, what option on the Web site
    6·1 answer
  • Rich Text Format (RTF) is a universal file format that can include information such as text style, size, and color and can be re
    12·2 answers
  • In one to two sentences, explain why citizens pay taxes
    8·1 answer
  • Dimensional arrays can be created using loops. 2 dimensional arrays can be created using:
    10·1 answer
  • What offers backup services that use cloud resources to protect applications and data from disruption caused by disaster? Multip
    9·1 answer
  • CC stand for.....in the email platform?
    12·2 answers
  • HELPPP I cand find my sound card/driver on my computer, and I cant hear anything, I have tried to update the audio driver, but w
    7·1 answer
  • 8. Explain strategies employed by the operating system to ensure safety of programs and data in
    15·1 answer
  • A) Write "T" for true statement and "F" for false statement.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!