system-design-primer
system-design-primer copied to clipboard
modified by yash
n this example code, we first import the googletrans library and create a Translator object. We then prompt the user to enter the text they want to translate in English using the input() function.
Next, we prompt the user to enter the target language code they want to translate the text to. For example, "es" for Spanish, "fr" for French, "de" for German, etc. The user can look up the language codes on the Google Translate API documentation.
Finally, we use the translate() method of the translator object to translate the input text to the target language specified by the user, and print the translated text using the text attribute of the translation object. please add my name
done with part yash agarwal