input: from typing import List
  
  
  def reverse_words(string: str) -> str:
      """
      Reverses the order of words in a sentence while keeping the order of characters in each word the same.
      >>> reverse_words('This is a sentence.')
      'sentence. a is This'
      """
output:     words = string.split()
      reversed_words = words[::-1]
      return ' '.join(reversed_words)