DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get first character of string
string = 'This is a string' print(string[0]) #output: 'T'
Source by thispointer.com #
PREVIOUS
NEXT
Tagged:
#python
#character
#string
ADD COMMENT
Topic
COMMENT
Name
5+1 =
Submit