Python Online Compiler & Playground
HTML/CSS/JavaScript
HTML
CSS
Javascript
C++
C
PHP
Java
Python
Swift
C#
Ruby
Node.JS
Kotlin
jQuery
Go
R
TypeScript
Start Python Course
Register
word finding
0
Author: The future is now thanks to science
Dark
Public
Save
PY
py
1
2
3
4
5
6
7
8
9
10
11
12
text =
input
()
word =
input
()
def
search
(
text
,
Word
):
if
Word
in
text
:
print
(
"Word found"
)
else
:
print
(
"Word not found"
)
return
search
(
text
,
word
)
Enter to Rename, Shift+Enter to Preview
OUTPUT