4 lines
88 B
Python
4 lines
88 B
Python
def truncate(text):
|
|
if len(text) <= 3:
|
|
return text
|
|
return text[:3] + ">" |