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 Antwort
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.