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
grigory [225]
4 years ago
9

Implement function translate() that provides a rudimentary translation service. The function input is a dictionary mapping words

in one language (the first language) to corresponding words in another (the second language). The function provides a service that lets users type a phrase in the first language interactively and then obtain a translation into the second language, by pressing the Enter/Return key. Words not in the dictionary should be translated as __

Computers and Technology
1 answer:
frosja888 [35]4 years ago
4 0

Answer:

Check the explanation

Explanation:

#method to find the word in one language and return

#corresponding word in other language

def translate(ltolDict):

#loop to display contents of the dictionary

   print("Welcome to the WordsRUs translation service.")

   word = input("Please enter a word: ")

   while word != "Quit" and word != "quit":

       if word in ltolDict:

           print(word ," means ", ltolDict[word])

       else:

           print(word ," means ", "________")

       word = input("Please enter a word: ")

   print("Thanks for using our translation service.")

A code screenshot can be seen below.

You might be interested in
What is the job of a router during the process of routing on the Internet?
geniusboy [140]

Answer:

Choice C

Explanation:

4 0
3 years ago
Why did NFL equip its players with RDIF tags?
SVEN [57.7K]

NFL equip its players with RDIF tags so as aid or support them to take a lot of statistical information about the players e.g. their position, speed, acceleration and others. The data taken is often used in making a lot of analysis and coaching decisions linked to the players.

<h3>Why did NFL equip it's players with RFID tags?</h3>

This is known to be often done so that it can aid location tracking, a lot of NFL equips each player with a minimum of two RFID tags.

Hence,  NFL equip its players with RDIF tags so as aid or support them to take a lot of statistical information about the players e.g. their position, speed, acceleration and others. The data taken is often used in making a lot of analysis and coaching decisions linked to the players.

Learn more about NFL from

brainly.com/question/15262528

#SPJ1

5 0
2 years ago
David wanted to build a Temple for God in________
Leona [35]

Answer: The answer would be Bethlehem!

4 0
3 years ago
Read 2 more answers
What was Ada Lovelace's contribution to computer science?
Alika [10]

Answer:

She made the first computer.

Explanation:

Augusta Ada King, Countess of Lovelace (née Byron; 10 December 1815 – 27 November 1852) was an English mathematician and writer, chiefly known for her work on Charles Babbage 's proposed mechanical general-purpose computer, the Analytical Engine.

8 0
2 years ago
Read 2 more answers
When does the following while-loop stop running?
8090 [49]

The loop never stops running because the value of var is always 1.

5 0
3 years ago
Other questions:
  • The buses that connect peripheral (typically input and output) devices to the motherboard are often called expansion buses. ____
    5·1 answer
  • A simple algorithm for handling requests works like this:________ a) all requests users make are stored. b) The elevator priorit
    15·2 answers
  • What could cause a fixed disk error.
    15·1 answer
  • Given the integer variables x, y, and z, write a fragment of code that assigns the smallest of x, y, and z to another integer va
    7·1 answer
  • Why do you think it is necessary to set the sequence in which the system initializes video cards so that the primary display is
    15·1 answer
  • Susan uploads her newly created files on the web server using FTP. What should she ensure while uploading to prevent other users
    9·2 answers
  • Animation timing is does not affect the
    10·1 answer
  • Which statement about technology before the invention of the printing press is true?
    8·1 answer
  • What is a network computer that processes requests from a client server​
    11·1 answer
  • What is the difference between DWT and CWT?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!