This is an assignment. I have everything correct EXCEPT the last thing it
prints is None.
Test input “This is awesome”
Test input “is”
Test input (any word not in text)
How do I get rid of the None that prints?
Thanks
def search(text, word):
if word in text:
print('Word found')
else:
print('Missing ')
text = input()
word = input()
print(search(text, word))
Thank You, not only for the answer, as that is important, but explained why it did what it did. I had not run into that yet in my studies. Or it didn’t sink in. I keep trying.