On 14 mar, 14:25, [EMAIL PROTECTED] wrote:
> Hi friends !!
>
> I'm neophite about python, my target is to create a programa that
> find a specific string in text file.
> How can do it?
>
> Thanks
> fel
$ cat text.txt
aaa
bbb
ccc
ddd
aaa bbb
ccc ddd
aaa bbb ccc ddd
aaa eee
bbb eee
ccc eee
ddd eee
bruno modulix a écrit :
>
> I fail to see why would it would be better to have to open a browser, go
> to python.org, go to the doc, find the right link etc instead of just
> typing dir(xxx) and/or help(xxx).
>
I fully agree with you. I just suspect that you are not more than me a
web develo
Ximo a écrit :
> I am doing my own interpreter with the Python languaje.
>
> Do you understand me?
>
I will do my best : I guess that you are about to write your own non
python interpreter (I mean, it will interpret some language that is not
Python) and your interpreter sadly writes "None" whe
<[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> For example, assuming that I have a list like:
>
> mylist = [0, 1, 1, 1, 1, 5, 6, 7, 8, 1, 10]
>
> I would like to find the indices of the elements in the list that are
> equal
> to 1 (in this case, the 1,2,3,4,9 elements ar