method to find the first instance of a string python code example Example: find first instance of character in string python mystring.findfirstindex('dude') # should return 4