Help! Help! I am struggle, I don't found the bugs on this code below for search engines, there's someone who gonna check for me | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Help! Help! I am struggle, I don't found the bugs on this code below for search engines, there's someone who gonna check for me

def search(text,word): if word in text: print('word found') else: print('word not found') text= input() word= input() (search (text, word)) https://www.sololearn.com/discuss/2882972/?ref=app

17th Sep 2021, 5:06 AM
Alonso M. Kalonji
Alonso M. Kalonji - avatar
2 Réponses
0
1. You don't need the parentheses around your call to the search function. 2. Check to make sure your output is exactly what is expected for either case. "Word found" vs "word found" ??? What does the other post have to do with your question?
17th Sep 2021, 5:11 AM
ChaoticDawg
ChaoticDawg - avatar
0
In your output "Word" needs to be capitalized.
17th Sep 2021, 5:23 AM
Josiah Mathieu
Josiah Mathieu - avatar