0
print and return
word = input() text = input() def search(word,text): if word in text: print("word found") else: print("word not found") search(word,text) my doubt is: what if i use return function instead of print.
1 Answer
word = input() text = input() def search(word,text): if word in text: print("word found") else: print("word not found") search(word,text) my doubt is: what if i use return function instead of print.