Sergei089 / python_ex

1 stars 1 forks source link

Hexlet#24 #60

Closed Sergei089 closed 1 year ago

Sergei089 commented 1 year ago
def truncate(text,length):
    return (text[:length]+"...")
Sergei089 commented 1 year ago
text = "teyfhdjyujuy4j"
length = 5

def truncate(text,length):
    return (text[:length]+"...")

# t = truncate(text,length)
# print(t)