Task:
Make a function that converts a word to pig latin. The rules of pig latin are:

```
If the word has more than 3 letters:
  1. Take the first letter of a word and move it to the end
  2. Add -ay to the word
Otherwise leave the word alone.
```

Example: `hello` = `ellohay`

Source: codewars | Difficulty: EASY
Tags: String algorithms

Fundamentals

Starter code: def pig_latin(word):
	

Solutions:
def pig_latin(word):
	return word[1:] + word[0] + 'ay' if len(word) > 3 else word


def pig_latin(word):
	return word if len(word) < 4 else word[1:] + word[0] + 'ay'


def pig_latin(word):
	return word if len(word) < 4 else f'{word[1:]}{word[:1]}ay'


def pig_latin(s):
	return '{}{}ay'.format(s[1:], s[0]) if len(s) > 3 else s


def pig_latin(word):
	if len(word) < 3:
		return word
	ret = word + word[0] + 'ay'
	return ret[1:]


pig_latin = lambda w: len(w) < 4 and w or '%s%say' % (w[1:], w[0])