E
E
Emil Timerbaev2020-08-30 13:32:28
Python
Emil Timerbaev, 2020-08-30 13:32:28

How to find line number with given text in file?

How to find line number with given text in file? It is desirable to write please, otherwise I have been very stupid lately

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2020-08-30
@MrDlop

lines.index('заданный текст')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question