title: Is there a simpler way to reserve the characters in a sentence, but keep the word order as is?
body: <p>Is there a simpler way to take a sentence string and return the sentence with the order of the characters in each word reversed? Importantly, the order of the characters in the words is reversed, NOT reverse the order of words in the sentence.</p>
  
  <pre><code>def reverse_words(sent):
  
      reverseall = sent[::-1]
      reversewordlist = reverseall.split()
      newlist = reversewordlist[::-1]
      newsentence = " ".join(newlist)
      return newsentence
  
  
  print(reverse_words('keep coding'))                                   # =&gt; 'peek gnidoc'
  </code></pre>