DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+5 =
Submit