0

Please anybody correct this code bit . There an erro none printed that was useless.

text = input() word = input() def search(a , b): if b in a: print("Word founded") else: print("Word not founded") print(search(text, word)

24th Aug 2022, 9:24 AM
UBKO👩‍💻
UBKO👩‍💻 - avatar
3 Réponses
+ 5
Your function does not return anything, it just prints. One way to fix it is replacing the 2 print() inside of your function by return statements Also remove the indentation of the 2nd line
24th Aug 2022, 9:36 AM
Lisa
Lisa - avatar
+ 3
Check indentation in line 2 and line 7 Remove print( in line 8
24th Aug 2022, 9:37 AM
praneetha
praneetha - avatar
0
Thanku sir/ ma'am
24th Aug 2022, 4:35 PM
UBKO👩‍💻
UBKO👩‍💻 - avatar