Share your repls and programming experiences

← Back to all posts
Pig Latin translator
Bunnytoes (165)

I made a pig latin translator with @AlexDaCoder. I updated it, now it takes less time and it has a use again feature. It can now handle sentences

Comments
hotnewtop
InvisibleOne (3206)

This is ok... but it only does a single word at a time. You should make it so you can input a sentence.

Bunnytoes (165)

@InvisibleOne that is a good idea, I will try that later, though it will be difficult

InvisibleOne (3206)

Try making the code that converts the word to pig latin into a function or method. Then split the users input by spaces and for each word, run it through the conversion function and add the results, then output them to the user. @Bunnytoes

InvisibleOne (3206)

Nice, I really like how it automatically figures out if you are inputting pig Latin or normal text. Great job @Bunnytoes

Bunnytoes (165)

@InvisibleOne thanks, I did that part and alexDaCoder helped with the sentences