Answers for "how to find second instance of a character in python"

1

python find second occurrence in string

# find index of second occurence of substring in string
idx = string.find(substring, string.find(substring) + 1)
Posted by: Guest on June-06-2021

Code answers related to "how to find second instance of a character in python"

Python Answers by Framework

Browse Popular Code Answers by Language