Move the first letter of each word to the end of it, then add "ay" to the end of the word. Leave punctuation marks untouched.

## Examples

```python
pig_it('Pig latin is cool') # igPay atinlay siay oolcay
pig_it('Hello world !')     # elloHay orldway !
```
```C++
pig_it("Pig latin is cool");   // igPay atinlay siay oolcay
pig_it("Hello world !");       // elloHay orldway
```
```Java
PigLatin.pigIt('Pig latin is cool'); // igPay atinlay siay oolcay
PigLatin.pigIt('Hello world !');     // elloHay orldway !
```

Difficulty: introductory

Starter code:

def pig_it(text):
	

Solutions:
def pig_it(text):
    lst = text.split()
    return ' '.join( [word[1:] + word[:1] + 'ay' if word.isalpha() else word for word in lst])


def pig_it(text):
    return " ".join(x[1:] + x[0] + "ay" if x.isalnum() else x for x in text.split())

def pig_it(text):
    res = []
    
    for i in text.split():
        if i.isalpha():
            res.append(i[1:]+i[0]+'ay')
        else:
            res.append(i)
            
    return ' '.join(res)

def pig_it(text):
    new_string = ""
    for each in text.split():
        if each == "?": 
            new_string += "? "
        elif each == "!":
            new_string += "! "
        else:    
            new_string += each[1:len(each)] + each[0] + "ay "
    a= len(new_string)    
    return new_string[0:a-1]


import re

def pig_it(text):
    return re.sub(r'([a-z])([a-z]*)', r'\2\1ay', text, flags=re.I)

def pig_it(text):
    return ' '.join([x[1:]+x[0]+'ay' if x.isalpha() else x for x in text.split()])

import re
def pig_it(text):
    return re.sub(r'(\w{1})(\w*)', r'\2\1ay', text)

from string import punctuation
def pig_it(text):
    words = text.split(' ')
    return ' '.join(
        [
            '{}{}ay'.format(
                word[1:],
                word[0]
            ) if word not in punctuation else word for word in words
        ]
    )

def pig_it(text):
    return ' '.join([w[1:] + w[0] + 'ay' if w.isalpha() else w for w in text.split(' ')])

def pig_it(text):
    piggy = []
    for word in text.split():
        if word.isalpha():
            piggy.append(word[1:]+ word[0] + "ay")
        else:
            piggy.append(word)
    return ' '.join(piggy)

def pig_it(text):
    #your code here
    n = 0
    x = 0
    text = text.split() #split the text into words
    text = list(text) #make the words a list
    pig_text = [] #make an empty list
    for word in text:
        a = list(word) #set a to be the list of word (the letters on their own)
        print(a)
        if len(a) > 1:
            a.append(a[0]) #add the first letter to the end
            del a[0] #delete the first letter
            a.append('ay') #add ay to the end
        if '!' in a:
            n += 1
        elif '?' in a:
            x += 1
        elif len(a) == 1:
            print(a)
            a.append('ay') 
        a = ''.join(a) #rejoin the word
        pig_text.append(a) #put the word in the empty list
    pig_text = ' '.join(pig_text) #join the words up with spaces
    return pig_text #return the sentence