Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python get first character of string

string = 'This is a string'
print(string[0])
#output: 'T'
 
PREVIOUS NEXT
Tagged: #python #character #string
ADD COMMENT
Topic
Name
6+6 =