LearnPy Hub
← Regular Expressions problems
Easy

Find a Word

Read a sentence and a word. Print Found if the word appears anywhere in the sentence (use re.search with the word as the pattern), otherwise Not found.

Input

Two lines.

Output

One line.

Sample 1

Input
I love Python
Python
Output
Found

Sample 2

Input
I love Python
Java
Output
Not found
solution.py
Output appears here
Find a Word · Python practice problem · LearnPy Hub