Fix for me the bugs in the code to output "word found" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Fix for me the bugs in the code to output "word found"

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

15th Jun 2021, 12:31 PM
Yiga Mark Dan
Yiga Mark Dan - avatar
3 Answers
0
I think the indentation got messed up. Can you please share the link to your code?
15th Jun 2021, 12:38 PM
Lisa
Lisa - avatar
- 1
Word = input() Text = input() if Text in Word: print("Word found") else: print("Word not found")
15th Jun 2021, 12:43 PM
Eashan Morajkar
Eashan Morajkar - avatar
15th Jun 2021, 12:44 PM
Yiga Mark Dan
Yiga Mark Dan - avatar