Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
