Search
 
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
Name
5+1 =