This is my assignment:

```
# text = input()
# word = input()
# print(search(text, word))

```

I need to print "Word found" if word there is in text. And "Word not found" if doesn't.

How I tried:

1. First attempt:

```
text = input()
word = input()
def search(text, word):
    if text.split() in word.split():
        print("Word found")
    else:
        print("Word not found")
search(text, word)

```
2. Second attempt:

```
def search(text, word):
    if word.find() == text.find():
        print ("!")
    else:
        print("?")
search(text, word)

```
3. Third attempt:

```
text = input()
word = input()
def answer(text, word):
    if text.find(word):
        True
        print("!")
    else:
        print("?")
answer(text, word)

```