26th May 2022, 8:28 AM
Alejandro47
Alejandro47 - avatar
2 odpowiedzi
+ 2
Alejandro47 Method which doesn't return, gives None when you print that function
26th May 2022, 9:09 AM
A͢J
A͢J - avatar
+ 1
Just put search(text, word) Instead of print(search(text, word)) #your function not returning anything so it return none default, which is no need to catch.
26th May 2022, 8:36 AM
Jayakrishna 🇮🇳