Pyg Latin


The first page only shows examples for the user to see before starting to use it.

The second page is just introducing Pig Latin where I had to write it out.

On the third page I introduced raw_input() where it’ll wait for me to type something and press enter.piglatin.4

In this page I added the if statement that checks that len(original) is > 0. 
piglatin.5 I inserted  and to add a second condition to my statement.

piglatin.6I tested my code and made sure it was ready before I continued.
piglatin.7During this screenshot, I was beginning to translate to Pig Latin.
piglatin.8In this slide I made the letters in our word lowercase by plugging in the function .lower()
piglatin.9In part 9, I concatenated the strings together .
piglatin.10Just like in the example, in this slide all I did was slice the string from the 1st index all the way to the end of new_word.
piglatin.12And now I am done, all I had to do was test it and that’s it!

Print this page