Answered step by step
Verified Expert Solution
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started