[Tutor] Read from large text file, find string save 1st string of each line where it appeared.

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Dec 28 09:34:00 EST 2015


On 28/12/2015 11:20, sutanu bhattacharya wrote:
> {'115160371': [45349980, 22477811, 40566595, 26947037, 16178191, 12984002,
> 20087719, 19771564, 61746245, 17467721, 32233776, 31052980, 70768904,
> 16113331, 12414642]} <tutor at python.org>
>
> suppose 61746245 <tutor at python.org> is my searching string. so o/p will be
> 115160371 <tutor at python.org> (1st string). Area in between third bracket ([
> ]) is the searching area...
>
>
> kindly help me to solve this problem..
>

We will help when you show us the code that you've written.  What OS and 
Python version are you using?

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list