Find index of character in string python | Example code

Use Python find() method to get the index value of character in given string. This method returns the index of a char inside the string if found. And If the char is not found, it raises an exception. Example find the index of a character in string python Simple example code. Output: You can also Read More…