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