how to find the first character of a 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