Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python truncate string to length

mystr="I am too long I should only be 10 characters.";
mystr = mystr[:10]
 
PREVIOUS NEXT
Tagged: #python #truncate #string #length
ADD COMMENT
Topic
Name
6+5 =