code: def truncate(data, l=20):
      "truncate a string"
      info = (data[:l] + '..') if len(data) > l else data
      return inff truncate(data, l=20):
      "truncate a string"
      info = (data[:l] + '..') if len(data) > l else data
      return info
docs: truncate a string