Re: [Tutor] Search for Text in File

2019-08-15 Thread Alan Gauld via Tutor
On 15/08/2019 15:10, Stephen P. Molnar wrote: > I need to find a phrase in i text file in order to read a unique text > string into a python3 application. > > I have become stuck and Google has not been of any use. I'm sorry but there is so much wrong here it is difficult to know where to begin.

Re: [Tutor] Search for Text in File

2019-08-15 Thread Peter Otten
Stephen P. Molnar wrote: > I need to find a phrase in i text file in order to read a unique text > string into a python3 application. > > I have become stuck and Google has not been of any use. > > Here is my attempt: > import re > > name = input("Enter Molecule Name: ") > > name_in = name+'_

Re: [Tutor] Search for Text in File

2019-08-15 Thread David Rock
> On Aug 15, 2019, at 09:10, Stephen P. Molnar wrote: > > > Everything that I have tried returns 'TypeError: 'str' object is not > callable’. As a rule, posting actual output is better than paraphrasing. We can’t tell what you have tried, or what the expected result actually is. We also do