xxxxxxxxxx
from googletrans import Translator
translator = Translator()
english_text = "Hello, how are you?"
spanish_translation = translator.translate(english_text, dest="es")
print(spanish_translation.text)
xxxxxxxxxx
Please, re-submit your solution. If the problem persists, contact an administrator.