What is a correct syntax to return the first character in a string? PYTHON code example
Example: python get first character of string
string = 'This is a string'
print(string[0])
#output: 'T'
string = 'This is a string'
print(string[0])
#output: 'T'