Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python trim string to length

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