Please anybody correct this code bit . There an erro none printed that was useless. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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