Search engine syntax error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Search engine syntax error

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

11th Aug 2021, 3:27 PM
Ermias Kebede
Ermias Kebede - avatar
4 Answers
+ 3
The error is because in the else statment you haven't typed the closing bracket
11th Aug 2021, 3:38 PM
Parth
Parth - avatar
11th Aug 2021, 3:45 PM
A͢J
A͢J - avatar
+ 1
Thanks you all . I finally got it right and I am now a graduate of phyton beginner
11th Aug 2021, 3:47 PM
Ermias Kebede
Ermias Kebede - avatar
0
Ermias Bibi looking at this question, your other question that AJ linked to and the fact that you wrote "phyton beginner", you need to learn to pay much more attention to details if you want to be a programmer. Remember that every character counts.
12th Aug 2021, 2:53 AM
Simon Sauter
Simon Sauter - avatar