Python Forum

Full Version: line number of first and second occurance of string in a file
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Here is the logic I am trying to code.

* I have a line number of a certain string in a file. I want to get the line number of second occurrence of that string in a file.

Please help me to write the code.
Help is to give assistance or support.

Write a code and there will be assistance or support. With no code nothing to give assistance or support to.