Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Program1 suppose you want to make a simple translator program. The program's input is a sentence from any language you want such as (German,Spanish,Russian..etc), and

Program1
suppose you want to make a simple translator program. The program's input is a sentence from any language you want such as (German,Spanish,Russian..etc), and the translated output is Arabic language.
first you need to install a packege called (translate)
then import it in your program. (from translate import Translator)
next step:
determine the language. (translator= Translator(to_lang="Arabic")
next step:
get the message from the user. input("Please enter the sentence : ")
next step:
get the translation. T= translator.translate(the entered sentence )
last step:
print the translation you have got

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

What comprises a lessees minimum lease payments? What is excluded?

Answered: 1 week ago

Question

Explain the pages in white the expert taxes

Answered: 1 week ago