find first character in string py 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