program to find out first character of every string in python code example
Example 1: python get first character of string
string = 'This is a string'
print(string[0])
#output: 'T'
Example 2: find first instance of character in string python
mystring.findfirstindex('dude') # should return 4