0
Как решить это задание?
В выводе скрипта выходит нужный ответ и None, как убрать None?
3 Réponses
+ 2
Я уже исправил, спасибо
+ 1
text = input()
word = input()
def search(text, word):
  if word in text:
    ans = print("Word found")
  
  elif word not in text:
    ans = print("Word not found")
    
  return ans
    
answer = search(text, word)
print(answer)
+ 1
text = input()
word = input()
def search(text, word):
  if word in text:
    ans = print("Word found")
  
  elif word not in text:
    ans = print("Word not found")
    
search(text, word)



