3 Antworten
+ 6
tee_o ,
please post your attempt here, so that we can see where you get stuck.
thanks!
+ 2
Your code have uppercased every first letter, make it lowercase.
Also you dont need anything inside else, remove "()"
Also you never call function you make, and goal of function is to be reusable. So most function will have return not print inside, maybe you dont need to print this value every time.
I suggest you to get back and read again about how function and how if/else work, and practice more, before you start with advanced python.
https://code.sololearn.com/c9OUo04Mbi47/?ref=app
0
Text = input()
Word = input()
Def search(text,word):
If word in text:
Print("word found")
Else ( not word in text):
Print("word not found")