Take a sentence (string) and reverse each word in the sentence. Do not reverse the order of the words, just the letters in each word.

If there is punctuation, it should be interpreted as a regular character; no special rules.

If there is spacing before/after the input string, leave them there.

String will not be empty.

## Examples

```
"Hi mom" => "iH mom"
" A fun little challenge! " => " A nuf elttil !egnellahc "
```

Source: codewars | Difficulty: EASY

Starter code: def reverser(sentence):
	

Solutions:
def reverser(sentence):
	return ' '.join((i[::-1] for i in sentence.split(' ')))


def reverser(s):
	return ' '.join((w[::-1] for w in s.split(' ')))


import re

def reverser(sentence):
	return ''.join((w[::-1] if ' ' not in w else w for w in re.findall('(?:\\w+)|(?:\\s+)', sentence)))


from re import compile
r = compile('(\\W)')

def reverser(sentence: str) -> str:
	return ''.join((w[::-1] for w in r.split(sentence)))


def reverser(sentence):
	emt = ' '
	split_it = sentence.split(' ')
	for word in split_it:
		emt += word[::-1] + ' '
	return emt[1:-1]


import re

def reverser(sentence):
	return ''.join((i[::-1] for i in re.split('(\\s+)', sentence)))


def reverser(sentence):
	newsent = sentence.split(' ')
	rnsent = [i[::-1] for i in newsent]
	s = ' '
	s = s.join(rnsent)
	return s


def reverser(sentence):
	text = sentence.split(' ')
	ans = []
	for i in text:
		ans.append(i[::-1])
	return ' '.join(ans)


def reverser(sentence):
	ans = ''
	word = ''
	for letter in sentence:
		if letter == ' ':
			ans = ans + word[::-1] + letter
			word = ''
		else:
			word = word + letter
	return ans + word[::-1]


reverser = lambda x: ' '.join([i[::-1] for i in x.split(' ')])