P492.py, Python Solution of UVa string-processing problem: 492 - Pig-Latin. In this post we will see how we can solve this challenge in Python for UVa Online Judge.

Problem Description

You have decided that PGP encryptation is not strong enough for your email. You have decided to supplement it by first converting your clear text letter into Pig Latin before encrypting it with PGP.

Input and Output You are to write a program that will take in an arbitrary number of lines of text and output it in Pig Latin. Each line of text will contain one or more words. A “word” is defined as

...

You can find the full details of the problem Pig-Latin at UVa Online Judge

Solution: Please check the p492.py snippet for the solution.

Solution originally posted at: Github by @sajjadt