DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
py insert char at index
a_string = "ac" a_string = a_string[:1] + "b" + a_string[1:] print(a_string) >>> abc
Source by www.kite.com #
PREVIOUS
NEXT
Tagged:
#py
#insert
#char
#index
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit