Moving around in a string

Ryan Spencer jeder at earthlink.net
Sat Dec 6 03:41:24 EST 2003


Hello All,

	Once again I'm back a with a question, ha ha.

Well, I've gotten to an exercises where it wants me to write a translation
program that takes input from the user and translates it into either pig
Latin or something called "ubby dubby". It describes the basic rules and
all, and I somewhat understand in my mind on how to go about doing it, but...

It requires me to, for the pig Latin part, remove the first letter and
move it to the end of a string (and then add ay to the end.)

How should I go about "moving" to the end of the string?

Just for clarification I want to do something like...

Please enter a word: Orange

rangeOay

(taking the O and bringing it to end and then adding 'ay' to the end)

Thanks as always,

~Ryan




More information about the Python-list mailing list