This function reverse the order of letters in each word of a sentence.
def reverse(sentence):
words = sentence.split()
reversesentence = ' '.join(word[::-1] for word in words)
return reversesentence
input = "Jim wants to get a job in data science"
print("The output of " + input + " is: " + reverse(input))
It gives an output like this:
The output of Jim wants to get a job in data science is: miJ stnaw ot teg a boj ni atad ecneics