Это правильно??? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

Это правильно???

def search(a, b): c = a.split(" ") if b in c: print("Word found") else: print("Word not found") text = input() word = input() print(search(text, word))

26th Aug 2021, 8:25 PM
Axmadaliyev Jaxongir
Axmadaliyev Jaxongir - avatar
1 Respuesta
+ 1
We can't tell u if your code is right or not before u tell us what is the object of writing this code ⁉️ But The code is syntaxly right I understand form your code that u want to search about word in a string and print particular sentence if the word is in the string and a nother sentence if is not
26th Aug 2021, 8:38 PM
Muhammad Galhoum
Muhammad Galhoum - avatar