Ay B C


#1

Ay B C
Now we can get ready to start translating to Pig Latin! Let's review the rules for translation:

You move the first letter of the word to the end and then append the suffix 'ay'.
Example: python -> ythonpay

Let's create a variable to hold our translation suffix.

Instructions
Create a variable named pyg and set it equal to the suffix 'ay'.

?
Hint
Remember to use a single equal sign to do the assignment and to put quotation marks around the string 'ay'!

anybody?


#2

Never mind, got it !


#3

What was it? I am stuck with this one. Perhaps I should go back and review.


#4

what is the answer then????????


#5

The question is asking you to set up a variable (pyg) which is just set equal to ("ay")

Therefore the answer is this -

pyg = "ay"


#7

i used a complicated logic
pyg = 'ay'
a= raw_input("enter any word ")
b= len(a)
print a[b-1]
c=1
while b>2:

    print a[c]
    b=b-1
    c=c+1

print a[0]
print pyg

output

avira
a
v
i
r
a
ay

why it changer its line on every loop ????