You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 1 - The python scripts in this example are written using Python 3.9 and the Python PyCharm IDE. To use it, you must first install the PyCharm IDE on your device.
# 2 - To execute latin_translator.py from the terminal, type the following code. Example, From Your Terminal Run 'python3 latin_translator.py'
# $ python3 latin_translator.py
## latin_translator.py
#request user for input
user_input = input("Input text to translate to pig latin: ")
print("User Text: ", user_input)
# This step breaks the words into a list
updated_user_input = user_input.split(' ')
for j in updated_user_input:
if len(j) >= 3: #only translate words with more than 3 characters