LearnPy Hub
← File Handling problems
Medium

Search a File

Write n lines to a file, then read a search word. Print the numbers of the lines containing the word (case-insensitive) on one line, or not found.

Input

n, n lines, then a word.

Output

Line numbers or not found.

Sample 1

Input
3
Python is fun
I like tea
python rocks
python
Output
1 3

Sample 2

Input
2
a
b
z
Output
not found
solution.py
Output appears here
Search a File · Python practice problem · LearnPy Hub