DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
How to remove all characters after a specific character in python?
mystring = "123⋯567" mystring[ 0 : mystring.index("⋯")] >> '123'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#How
#remove
#characters
#specific
#character
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit