input: Write a function to determine if it is possible to get a text string truncated to a specified length by removing any number of characters from the given text string. If it is possible return the truncated text string, else return the original text string. If the given text string is empty then return an empty string.
  def truncate_text(text, length):
   if len(text) <= length:
   return text
   return text[:length]
  
  assert truncate_text("A quick brown fox jumps over the lazy dog", 15)=='A quick brown fox'
  assert truncate_text("A quick brown fox jumps over the lazy dog", 30)=='A quick brown fox jumps over the lazy dog'
  assert truncate_text("", 10)==''
  assert truncate_text("Hello", 5)=='Hello'
  assert truncate_text("Hello", 3)=='Hel'
output: def truncate_text(text, length):
      if len(text) <= length:
          return text
      return text[:length]