Pig latin translator python codecademy. Loading menu bar; Loading menu bar; Search.
Pig latin translator python codecademy This will enable us to see important details, such as the indentation and underscores, Good morning, everyone. This is the code that I have now, would anyone have any suggestions about how to proceed? pyg = 'ay' original = raw_input('Enter a word:') print 'Welcome to the Pig Latin Translator!' original = raw_input() original. Python Syntax; Tip Calculator; Strings & Console Output; Date and Time; Conditionals & Control Flow; PygLatin; Functions; Taking a vacation; Codecademy HTML Answers. So this turns interesting into nterestng because it removes both i characters. Python 2. So in lines 3 and 4, you should’ve done: enter code here. e "hello" The program was doing unexpected things, asking me to enter input twice and then codecademy saying my program was taking too long and that I should check for infinite loops. ” So “Python” becomes “ythonpay. If both of these conditions are true, then the original word you put in is printed. Help! This question has stumped me. Run Reset Share Pig Latin Translator: translates to pig latin I have a code for a short Python 2 Pig Latin translator. - candytale55/piglatin English to Pig Latin translator (Codecademy project) - ChiselD/pyglatin. So, every time I click Save & Submit, the page will become extremely slow and my browser keeps crashing and disconnecting from the Codecademy website. ") It still gives me an error: Traceback (most recent call last): File "python", line 2, in <module> TypeError: 'unicode' object is not callable what i'm doing wrong ? You can use the “Code Sample” link (i. python; python-2 I started learning Python this weekend and have made a Pig Latin translator. Don’t put an indent on if and else but put 2 tabs(8 spaces) before print and it will work. That This forum is now read-only. It’s disbelief not unbelief. This is likely a bug. I’m having a similar issue. //mi respuesta es: **print "¡Bienvenido al traductor de español a Pig Latin!"** // ¿Cual es el error? Skip to Content My code `print 'Welcome to the Pig Latin Translator!' original = raw_input("Enter a word: ")# Start coding here! print original It gives me this error: > Welcome to the Pig Latin Translator! Traceback (most recent call last): File "python", line 3, in <module> TypeError: 'str' object is not callable. Unless I’m reading my code wrong, this should be incorrect, as it doesn’t get to print the Pig Latin: Codecademy Forums How can I know if my translator works properly? Frequently Asked Questions. Make sure the user entered a valid word. Code snippets and excerpts from the course. ” original = raw_input('ingresa una pabalbra: ') longitud = len (original) print len (original) Well Alex aren’t you just the helpful little ray of sunshine? It’s a bit sad you have nothing better to do than troll a help forum. Skip to Content. Foreword. I have started off a little but am having trouble joining my words For example: Victoria Smith output: ictoriaVay mithSay print 'Welcome to the Pig Latin Translator!' original=raw_input("Enter a word:") print original # Start coding here! if orignal. " Pig Latin Translator . The only aspect I can't debug is the loop. Python FAQ. Here’s my code. Pig Latin is loosely defined as taking the first letter of each word, [python]+pig+latin 2014 at 0:58. All gists Back to GitHub Sign in Sign up Sign in Sign up You signed in with another tab or window. # This program: # Ask the user to input a word in English. As such, a word like "tree" becomes "eetray", and not "reetay". def pygLatin(): print ('Welcome to the Pig Latin Translator!') pyg = "ay" original = str(raw_input("Enter a word or phrase to translate to 'Pig Latin':")) original = original. Instant dev . print ('Welcome to the Pig Latin Translator!') pyg = "ay" . Ya he aplicado algunas de las soluciones que se sugieren aquí, sin éxito. If you want to remove the first letter of a word, use a slice: wor_te[1:]. You can however have elif <condition> which is short for else if. Why is and then moves the first letter to the end of the original input and then adds “ay” on to the end to create a quick pig latin converstion of any word. I can’t get the consonant word to cut its first letter out and put it at the end. Here is my code print 'Welcome to the Pig Latin Translator!' raw_input( This community-built FAQ covers the “Move it on Back” exercise in Codecademy’s lessons on Python. isalpha() Hope this helped. is problem caused by assigning value to ‘else’ statement? is using ‘elif’ statement needed to be used when, for some reason, value have to be assigned to ‘else’ statement? print "Welcome to the English to Pig Latin translator!" original = raw_input("Enter a word so it can ged piggy. Please use our new forums! Go to Python 2. " pyg = 'ay' original = raw_input('Enter a word I do not understand what to do. isalpha() else: print <PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!> hi guys, after days of head breaking on python, i managed to run this on my own without cheating but i would like to receive critique , as a newbie it will be useful for my future programming. Hot Network Questions Any three sets have empty intersection -- how many sets can there be? [Python] Pig Latin translator. could someone look at this issue it would be a big help. Pig Latin is a language game, where you move the first letter of the word to the end and add "ay. I am new to python programming and am trying to start off with a simple pig Latin translator. isapha() if len(original) > 0 and original: print original else: Coding a small Python project from CodeCademy called "Pig Latin Translator". I’m having a hard time building code for this tutorial. lower() + " " #lowers the case and adds a space to the end for word detection word This is my code print "Welcome to the English to Pig Latin translator!" original = raw_input('Prompt') if len(o Skip to Content. print "Welcome to the English to Pig Latin translator!" original = raw_input("What's your name?") if len forloop in python pig latin translator. original = raw_input raw_input(“Enter a word:”) if True or False: len print “Welcome to the English to Pig Latin translator!” original = raw_input(“Enter a valid word:”) if len(original) > 0 and “original”. print ‘Welcome to the Pig Latin Translator! Pig Latin Word ” After not putting “Traceback (most recent call last): File “python”, line 11, in . The code appears to be correct but it will return the following error: 2/11 print “Pig Latin” 3/11 print ‘Welcome to the Pig Latin Translator!’ Start coding here! original = raw_input(“Hi imma pig nice to meet you HAHAHAHH:”) original 4/11 print ‘Welcome to the Pig Latin Translator!’ original = raw_input (“Enter a word:”) I’ve noticed this happening a lot in the Python 2 course during the Pig Latin Translator part. " Any ideas of what might be confusing the interpreter or if this is just a bug? You cannot have else <condition>. Pyg Latin. I just want to look at the first letter of each word, move it to the end, and then add "Ay" to it. # Checks that it's a valid word. " original = raw_input("introdusca su mensaje:") x = len Python Cloud IDE. Get rid of those quotes. Sign in Product ok make sure there are no whitespaces in front of [if] and [else]. Hot Network Questions Get command history run by third party through ssh def convert_pig_latin(pig): first_letter = pig[0] python pig latin converter. Explore all courses. Here is what I did: 1 print 'Welcome to the Pig Latin Translat print “Bienvenido al traductor de espanol a Pig Latin. To create your own mystery message, enter your text into the text box and click “Pig Latin”. Pig Latin Translator for Codecademy. def Translate(Phrase): Subscript = 0 while Phrase[Subscript] != "a" or Phrase[Subscript] Python translator pig latin - for loop iteration. If someone from Codecademy read this I would like to suggest that you put some tutorials videos on I've been doing the python course and I'm at PygLatin, however I got a bit carried away and made this: print 'Welcome to the Pig Latin Translator! Please enter a word that does not involve numeric values. From Codecademy. In our code, we want to check the user’s input, which we stored in a variable called original, so we’d just have to use len() on that and compare against 0. When I got to section 4. I Why won't my words translate to pig latin. >Si el string no está vacío, haz que se > muestre la palabra ingresada por el > usuario. Loading menu bar; Loading menu bar; Search File "python", line 3, in <module> AttributeError: 'unicode' object has no attribute 'isaplha' I don’t understand, can anyone help me understand? I don’t want the FAQs for the Codecademy Python exercise Pop Quiz!: What are some helpful testing practices? Join the Discussion. Check yourself! I ran into a problem. " print 'Welcome to the Pig Latin Translator!' pyg = 'ay' original = raw_input('Enter a Though your solution produces the correct output, Codecademy wants you to put the correct answer in the variable new_word, and then print it. FAQs for the Codecademy Python exercise Break It Down: If you’re given instructions to print a specific string, assign a specific value to a variable, etc. A continuacion les dejo mi codigo del ejercicio de pig latin para futuras dudas, ayudas o sugerencias. As such, I'd like to make the program detect whether a word has a digraph at the beginning. FAQs for the Codecademy Python exercise Ending Up: Where in my code do I make this new slice of new_word? Join the Discussion. isapha() after your if statement, this adds an extra condition How can I change the code to do a pig latin sentence translator ? why does it fail when I enter a sentence ? ( It would be due to is alpha() function sending False when it encounters a space) Skip to Content. lower() makes the user typed word into lower case letters, and word stores the lower cased typed word, then first stores the first letter of the word with function word[0], which is a lower cased letter. To use the Pig Latin Translator, enter your word or phrase into the text box and click “English” to translate your text from Pig Latin to English. When I was testing my code, I found out that (understandably) multiple word entries don’t work in the translator, and although my code works, it made made me wonder what the way to do that was. so I can't take a hint. I am sure there are some issues, but I used a for loop to look for a space. Convert the word from I use the code below: BEGIN CODE print ‘Welcome to the Pig Latin Translator!’. This was a hard example but I got it after a few days! pyg = 'ay' original = raw_input('Enter a word:') # Lets the user input a word for translation word = original. the strings were my prob. Why does the blue gear keep turning? I entered a word. about # Welcomes the user print "Welcome to the English to Pig Latin translator. Follow @python_fiddle url: Go Python Snippet Stackoverflow Question. ' invalid_input = True def start(): original = raw_input("Enter a word:") if no hay que colocar el return, debe quedar asi: if longitud>=0: print original else: print “vacio” print 'Welcome to the English to Pig Latin translator!' comes up with the error: Traceback (most recent call last): File "python", line 1, in <module> LookupError: unknown encoding: utf-8 I've tried double quotation marks, single, everything. ” To write a Pig Latin translator in Python. Please use our new forums! Go to forums You need to make sure your indenting is just right for it to work. lower() + " When I submit this program (which works fine at translating the input into pig latin) I receive the following error message: “ Oops, try again. Since 2 days, I can’t go forward . Esto es lo que hice pero no se que pueda tener mal print "¡Bienvenido al traductor de español a Pig Question How can I know if my translator works properly? Python FAQ. Submitted by Redbul. Please use our new forums! Go to forums This forum is now read-only. The aim of this site is to help people and if someone came looking at this with a similar problem, it wouldn't make sense to them what was going on. Find and fix C: print "Bienvenido al traductor de espanol a Pig Latin. Python Project # 1: Pig Latin Translato I am on the Check yourself section and I wrote this code. thanks. lower() # makes the chosen word all lower case first = word[0] # defines the first characters of the word as first missing = word[1:] # defines the remaining characters in the word as missing new_word = missing + first print “¡Bienvenido al traductor de español a Pig Latin!” Nota: Ya probé quitando el espacio después de print; Ya probé escribiendo print “Bienvenido” Ya me aseguré de que el texto está escrito igual al de la instrucción. 6. Navigation Menu # Pig Latin is a language game, where you move the first letter of the word to the end and add "ay. Can someone tell me what's wrong with this code? print 'Welcome to the Pig Latin Translator!' original = raw_input("Enter a word:") if len(original) print 'Welcome to the Pig Latin Translator!' # Start coding here! raw_input("Enter a word:") original = raw_input Yesterday I was working through the Python module and started the Pig Latin section. When you post code, always format it by adding a blank line after your code, then selecting the code, but not the blank line, and finally, by clicking the {} button above the editing area. It looks like you printed the correct translation of Words for Pig Latin are formed by manipulating English words while conforming to a set of trivial rules. henryschab3573634903 October 22, 2021, 5:29pm 107. related: Pig Latin Translator. Why not? Because in Pig Latin, one does not simply move the first letter to the back and attach “ay”. I wanted to try to make as comprehensive a translator as I could manage. Please use our new forums! Go to forums Here is the code that I'm trying to run: print "Welcome to the Pig Latin Translator!" original = raw_input("Type in the English word here that you w Skip to Content. Words that start with a consonant - go to the first vowel and take everything before that vowel and place it at the end of the word. If Kate Lockwood or the Codecademy team could fix this then much appreciation would be given. if len(“original”) <= 0. If someone typed 'Hello', it will translate into Pig Latin. Mi código se ve así: print "Bienvenido al traductor de espanol a Pig Latin. " # The suffix "ay" pyg = "ay" # Prompts to enter a word original = raw_input("Enter a word:") # Contains result of appending "ay" to end of word new_word = original. pyg = ‘ay’ original = raw_input(‘Enter a word:’) I have started learning python a few hours ago on Codecademy. Hopefully some help arrives soon! I've been trying to write this code, but it isn't working for PygLatin 4/11. original = str(raw_input("Enter a word or phrase to translate to 'Pig Latin':")) original = original. about 10 years. Permalink. I am getting all of the lessons right but nothing I type in is translated into pig Latin. So, instead of this new_word = word[1:] print new_word + first + pyg Pyg Latin 4/11. Find and fix vulnerabilities Codespaces. 4 if len(original) != 0: 5 if original. I've never done any programming before and took advantage of the free course on Codecademy to get started. Your supposed to put an and statement and . Popular course topics Explore free or paid courses in topics that interest you. SQL. The first one displays the prompt, but does not assign the user input to a variable. Python. Hot Network Questions # Pig Latin is a language game, where you move the first letter of the word to the end and add “ay. " I mean what is this some kind of sick joke on people trying to learn how to code? This Python course has done nothing but make me upset and angry. com , but due to some bug it it shows the lesson is completed. Find and fix vulnerabilities Actions. Automate any workflow Codespaces. Pyglatin 4/11 Wont work (Resolved) heres my code, i’ve tried So I have been working over at Codecademy. Please use our new forums! Go to forums Question. JavaScript. However, is there a way to stop this? I got this same problem earlier. Python translator pig latin - for loop iteration. PHP. # Displays the word translated (in Pig Latin). " original = raw_input ("Dame una palabra") longitud = len (original) if longitud>0: print original else: print "vacio" Skip to Content replace() replaces all occurrences of a substring. I need help with the pig latin translator in python. In the example in the instructions, an empty string is assigned to the empty_string variable, and then the length of that is checked, using the len() method. stetim94 August So I’m also not sure about the “original = raw_input” bit, what does that mean? This is what I’ve got! print “Welcome to the English to Pig Latin translator!” Pretty good. Pig latin translator not working properly . I typed in exactly what the instructions told me to type in and it just seems to be playing games with me. I'd like to follow the rules of pig latin which state that it is not the first letter, but rather the first sound that moves to the end. Pig Latin Translator: translates to pig latin. Contribute to gitalry/Python-Codecademy development by creating an account on GitHub. print 'Welcome to the Pig Latin Translator!' # Start coding here! original = raw_input("Enter a word Skip to Content. Let me give you some examples: original. C#. Pig Latin translator is basically an introductory code for many projects, Python translator pig latin - for loop iteration. Please use our new forums! Go to forums. Data Science. Commented Apr 20, 2014 at 1:00. Often at times if you feel you’ve done an exercise correctly Here is my code: print 'Welcome to the Pig Latin Translator!' original=raw_input raw_input(" Skip to Content. Instant dev environments Durante varios días no he podido resolver el ejercicio 4/12, "Verifica tu trabajo!", así que no me queda otra que recurrir a este foro. Any help? hi guys, I am finally done with the pig Latin project but I was wondering if anyone knew how to get python to be able to translate a full sentence to pig Latin, instead of just a word. Sign in Product GitHub Copilot. Need help writing Pig Latin translation code in python. Your posted code indicates that you called raw_input twice. I don’t get why and I’d like you to help me in Python, part Pig latin : “pop Quiz!” : print ‘Welcome to the Pig Latin Translator!’ print ‘Welcome to the Pig Latin Translator!’ Start coding here! raw_input(“Enter a word”) original = raw_input if original > 0: print original else: print “empty” P. example: input: Python Pig Latin Converter (Words that start with consonants) 1. print ‘Welcome to the Pig Latin Translator!’ Start coding here! original = raw_input(“enter a word:”) variable_name = raw_input(‘prompt’) It says “You should now have a functional pig latin translator” but it doesn’t do anything but repeat the word I’ve entered. object9548968024 August 28, 2019, 9:47am 66. Since these rules are simple to follow, Pig Latin is mainly "spoken" by children when Lesson 02/11 – Ahoy! (or Should I Say Ahoyay!) [code lang=”python”] print ("Welcome to the English to Pig Latin translator!") [/code] Python in Codecademy. for me i was forgetting to put the “ on the end of empty (DOH!!!) I was trying multiple types of inputs to see what the program does. Java. How can I check the length of the user’s input? Answer. " So "Python" becomes # "ythonpay. I’ve started copying my original code to compare to the solution (and see they are always identical). Any idea’s on what’s going on here? I get that it’s not recognising any value for the ‘word’ string. My code is: This community-built FAQ covers the “Ending Up” exercise in Codecademy’s lessons on Python. You signed out in So, I have a basic Pig Latin translator that only works for one word. It seems no matter what I type, I keep on getting the error: Traceback (most recent call last): File "python", line 4, in <module> TypeError: 'unic thanks, it helped me too. ("Welcome to the English to Pig Latin translator!") [/code] Lesson 03/11 – Input! [code lang=”python”] Why why why ^^ print “Welcome to the English to Pig Latin translator!” original=raw_input(“A word please : “) if len(“original”)!=0: print original else: print “empty” print 'Welcome to the Pig Latin Translator!' # Start coding here! raw_input("Enter a word:") original = raw_input() "Traceback (most recent call last): File "python", line 4, in <module> TypeError: 'str' object is not callable" I've been on this course for 10 minutes, Hi - I'm working on the translator and I know I'm doing something wrong print "Welcome to the English to Pig Latin translator!" original = raw_input("Enter in a word that you would 2 votes. print “Welcome to the English to Pig Latin translator!” original = raw_input(“Input a word”) if len Popular course topics Explore free or paid courses in topics that interest you. This is my code ( Any ideas? ) : print ‘Welcome to the Pig Latin Translator! ’ Question How can I know if my translator works properly? Answer We know from the exercises that led to this point how our program should behave, so let’s check for some key aspects: When pressing Run, I’m prompted for a word If I enter nothing, it tells me it’s empty If I enter something that isn’t strictly alphabetical, it tells me it’s empty (we can change this Codecademy Python Answers. Here is how I did it. " Pig Latin translator program in python. Loading menu Gives me this error: File “python”, line 7 else: ^ SyntaxError: invalid syntax. a) empty string i. Please use our new forums! Go to forums Question How can I know if my translator works properly? Answer We know from the exercises that led to this point how our program should behave, so let’s check for some key aspects: When pressing Run, I’m prompted for print ‘Welcome to the Pig Latin Translator! In python you can already declare the variable and assign its duty. Is it a good code, or should it be new_word = new_word[1:len(new_word)] else: print 'empty' # prints the inputted word. 'print Welcome to the Pig Latin Translator! # Start coding here! raw_input("Enter a word:") original Skip to Content. " So "Python" becomes "ythonpay. HTML & CSS. Contribute to Vorteth/Pig-Latin-Translator-Codecademy-Exercise development by creating an account on GitHub. I notice another post on this forum about using a [while True:] statement, but I can't seem to get it to work. if and else but put 2 tabs(8 spaces) before print and it will work. This is not an entirely accurate pig latin translator. print ‘Welcome to the Pig Latin Translator!’ Start coding here! original=raw_input(“Enter a word:”) if len(original) > 0: print original. Loading menu bar; Loading menu bar; This forum is now read-only. thank you and here is your 🍔 <Below this line, add a link to the EXACT exercise Este es mi código, lo probé directo en python y sí funciona, no entiendo por qué aquí no. print 'Welcome to the Pig Latin Translator!' # Start coding here! name = raw_input ("Enter a word ") original = name if len (original) > 0: original = True if len (original) < 0: original I was just playing with that myself. In light of this and in my pursuit of python language knowledge Hey I'm running a short intro to computer science workshop with 9th Graders this Wednesday, and I thought it would be fun to get the students to design their own piglatin translator. For example, if I enter python, the word ‘python’ is returned instead of ythonpay. isalpha() == False: 6 print “Please use letters only” 7 else: Toggle navigation. ") And you can create two function: Check is not “” Check is alpha; Or you can modify your function: This community-built FAQ covers the “Break It Down” exercise in Codecademy’s lessons on Python. pyg = ‘ay’# Final de la palabra original = raw_input(‘palabra:’) #palabra que se escribe en la consola Welcome to the English Pig Latin Translator! Prompt> ?????What do I write? Welcome to the English Pig Latin Translator! Prompt Popular course topics Explore free or paid courses in topics that interest you. I just finished the course on developing the Pig Latin Translator, but something seems off to me. It's generally not a good idea to edit your question with the answers you've been given. print “Welcome to the English to Pig Latin translator!” original = raw_input(“please enter a word of your choice”) This forum is now read-only. " Fair enough, this is how Pig Latin works The only thing is, my program IS returning "edray," despite Codecademy's insistence it is returning "red. import enchant input_str = raw_input("Enter a word:") d = enchant Python Latin Characters and Unicode. Start coding here! raw_input (“Enter a word:”) original = raw_input if len (original) == 0: print “NO SOUP Here is how I did it. And I do not feel the need to ask questions w. Contribute to KyleDarren/pig-latin-translator development by creating an account on GitHub. Please use our new forums! Go to forums This is my code: print ‘Welcome to the Pig Latin Translator!’ Start coding here. Stack Overflow may not be the best place to ask for help with your issues. Break It Down Now let's take what we've learned so far and write a Pig Latin translator. Often times one needs to move groups of letters. { }) to paste your code the way it is written on the interpreter. The Python Wiki lists several options for you. isalpa() and len(original) > 0: return hola tengo una duda mi codigo es: print "Bienvenido al traductor de espanol a Pig Latin. Not showing output for vowel 'a'. S. Here is my In an attempt to develop my skills, I decided to expand the make-a-Pig-Latin-translator exercise from Codecademy for Python. C. For not tringsay. ) //Usa Python para mostrar ¡Bienvenido al traductor de español a Pig Latin! en la consola. Can someone tell me why this code doesn't print the pig latin translation? pyg = ‘ay Contribute to WienWong/Python_CodeCademy development by creating an account on GitHub. . Get an input from the user 2. I know my code is correct due to it printing the original, but I keep being told to get a solution. com for a while trying to learn python. print "Welcome to the English to Pig Latin translator!" I am trying to expand on the Codecademy pig latin convertor so that it accepts sentences rather than just single words and converts each word in I have tried the below way to implement the pyg_latin translator. Skip to content. So, first == "A" first == "E" first == "I" You can change this: original = raw_input(". So if the first letter of the word is repeated, replace(str(wor_te[0]),old_w) will remove all of them. It’s all about the indentation issue. We Want to Hear From You! Have a new question or can answer someone else’s? Reply to an existing thread! Some thing you can try and change in the code: Line 1: Remove the white space in front of print; Line 3 can be removed TypeError: object of type 'builtin_function_or_method' has no len() you are trying to call len with a built-in function as an argument, for example: len(sum) so look where you are using len, look what value you are passing to it (what did you assign to that name?) does anyone know what is wrong with my code? it keeps telling me that i accidentally deleted the variable original. e max123 and d) just letters i. Web Development. I was wondering if I could use the program I created in the Pyg Latin exercise to create a translator that would do entire sentences, as opposed to only single words. I've spent a lot of time building a Pig Latin translator and I'd like to know your thoughts! print "Welcome to the English to Pig Latin translator!" original = raw_input ("Type the word you want to translate!") def Is it a Codecademy exercise? – Andrea Gottardi. After some playing with the code to get it to work properly, I’ve generated something that accommodates the basic vowel rules of Pig Latin, and creates functions to translate to To write a Pig Latin translator in Python, here are the steps we'll need to take: Ask the user to input a word in English. You don’t really need another condition since if it is notnot Hello, My code below is returning the word I enter instead of converting to Pig Latin. Submitted by anonymous. , be sure that you match the spelling and capitalization exactly. AI. FAQs for the Codecademy Python exercise Move it on Back: Why is it not printing the Welcome to the Pig Latin Translator! Enter a word:Traceback (most recent call last): File “python”, line 4, in ExecTimeoutException: Program took Help, I don't know what is wrong with the code. Can someone fix this as it means I can't finish the course. Translating a string to pig latin. Many other people are having the same problem, I understand. Ingresa una palabra. Codecademy's translator is very limited. Here is my code print "Welcome to the English to Pig Latin translator!" original = raw_input("Enter word you would like to convet") if len (original) > 0 print original else: print "empty" Skip to Content. lower() + pyg # Checks validity of entered word (see line 8) This lesson won't let me enter the code. about 10 years / Above the “Typing Area” It’s only “< Python” “Codecademy” and “Me Hello, @OLBRSZ, Because your code is not formatted, it is difficult for other users to read and debug it. On a project I've been worki Hola, les doy mi ejemplo: print “Bienvenido al traductor de espanol a Pig Latin. Quick question. print("Bienvenido al traductor de espanol a Pig Latin") original=raw ok, just figured it out. 0. e "" b) just numberss i. Write better code with AI Security. You are asking python to specifically look up the length of the word original. ” Desde que empece el ejercicio tuve ciertas dudas Ahora recurro a ustedes! > Escribe una sentencia if que verifique > si la variable no está vacía. print new_word It works, but a shorter code may or may not be a good thing. GitHub Gist: instantly share code, notes, and snippets. Navigation Menu Toggle navigation. Submitted by KhanradCoder. Welcome to the Pig Latin Translator! Enter a word:Traceback (most recent call last): File “python”, line 4, in ExecTimeoutException: Program took too long to terminate. Learn SQL In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language. isalpha(), so in this case, original. This forum is now read-only. It keeps asking me did I deleted the varibule called "original. Codecademy Python. Here is my code (I would type in “Blue” when it asked color): print ‘Welcome to the Pig Latin Translator! After getting stuck MANY times (this is my 2nd time through Python), I no longer stray from the verbiage they provide you with. Well, after hours and hours, I've got most of it. Canonical Request \n I'm making a pig latin translator in python. – Martijn Pieters. 2nd last step. What am I missing here. # Converts the word from English to Pig Latin. I’m still pretty new to Python, and code in general, but I was wondering if anyone else knew some way to do this? Thanks! No, the code checks if the length of the word is bigger than zero and that only alphabetical characters are used. I see a few code redundancies and few comment on some of the functions aren’t correct. New. Check my other Python Projects here : . C++. Bash. Especially, look at to_piglatin_naive() – jfs. e 1234 c) numbers and letters i. 1. The code I've inputted is: 1 print 'Welcome to the Pig Latin Translator!' 2 3 4 raw_input("Enter a word:") 5 original = raw _input Note: my original has no spaces surrounding the underscores. Answer 53e535e08c1cccf4110006a9. I was trying to code this on codecademy. Pig Latin is a language game, where you move the first letter of the word to the end and add “ay. original = raw_input("Enter a word:") Also, the function isalpha() is used with the sythax variable. Here's my code: print"Welcome to the English to Pig Latin translator!" original=raw_input("Enter a word to translate. Could someone give me an example of what to put in? Much appreciated! I have started programming in Python at Codecademy. sólo tecleas original y le das enter code was correct but coming up error, looked on forums and it was the same and the next exercise (pyg latin part 2) also had the same code i had 2 teachers chck and they said it was fine, no colons missing or anything. Now let’s take what we’ve learned so far and write a Pig Latin translator. De lo contrario, haz que se > muestre "vacío". For example, in lesson 11 I type “Burger” and get “Burger” out but the lesson says that I have done everything correctly. isalpha(): print When I type in input beginning with a consonant, when prompted to, Codecadey feedback tells me input such as "red" should be changed to "edray. (Also your comment doesn’t make sense so I’d maybe hold back before you start calling other people retarded. 7 I was writing code for the PygLatin Translator. almost 11 years. I understand that I can reference a word minus the first letter by using a word[1:] for instance. Loading menu bar; Loading menu bar; Search. I reported it. R. The idea is that if I have to tell the students to exit When you post code, always format it by selecting the code, and then clicking the {} button above the editing area, so that we can see important details, such as the indentation and underscores. Reload to refresh your session. ” original = “Ingresa una palabra” original = raw_input(“Ingresa una palabra”) al momento de salirte none, en la pantallita negra aparece esto: Bienvenido al traductor de espanol a Pig Latin. e. Swift. com and I learned how to make a Piglatin translator that would take the first letter stick it at the end and add ay after that. Because in Pig Latin, about 10 years. Within seconds you’ll have decoded the secret cipher. So far I think that I've learn some basic programming skill and I'm really existed to try something more difficult. This is my code print "Welcome to my English to Pig Latin translator! Type in a two-word sentence, like Mine Turtle. Your use of format() and join() is also overly complicated. zkrd wkfexqpz vucav nrtuqpk reaey xravhb pzmw bpdw fvnyfb rcti