Python truncate a long string
Even more concise:
data = data[:75]
If it is less than 75 characters there will be no change.
info = (data[:75] + '..') if len(data) > 75 else data
Even more concise:
data = data[:75]
If it is less than 75 characters there will be no change.
info = (data[:75] + '..') if len(data) > 75 else data