0
Help I changed it a lot of times
2 Answers
+ 2
Alejandro47
Method which doesn't return, gives None when you print that function
+ 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.