diff --git a/from-google-translate.py b/from-google-translate.py new file mode 100644 index 0000000..fdc1e3d --- /dev/null +++ b/from-google-translate.py @@ -0,0 +1,4 @@ +from googletrans import Translator +text = 'Hola Mundo!' +translator = Translator() +print(translator.translate(text).text) \ No newline at end of file diff --git a/using-Try-except.py b/using-Try-except.py new file mode 100644 index 0000000..b050934 --- /dev/null +++ b/using-Try-except.py @@ -0,0 +1,4 @@ +try: + raise Exception("Hello, World!") +except Exception as e: + print(str(e)) \ No newline at end of file diff --git a/using-list-and-join.py b/using-list-and-join.py new file mode 100644 index 0000000..bff2d9f --- /dev/null +++ b/using-list-and-join.py @@ -0,0 +1,4 @@ +words = ["Hello", "World"] + +message = " ".join(words) +print(message) \ No newline at end of file