0

Can't anyone fix this code in the link

https://www.sololearn.com/post/1138845/?ref=app

15th Jun 2021, 1:08 PM
Yiga Mark Dan
Yiga Mark Dan - avatar
2 Answers
+ 1
Dont use „for word...“ take „if word..“ Or try it with „for“ and see what will happen. And at the end call the function def search (): text = "today is hot" word = "cold" if word in text: print ("word found") else: print("word not found") search() And change the indentations
15th Jun 2021, 3:30 PM
Angela
Angela - avatar
0
What are you trying actually by code..? Your code will not do anything because you not calling function to use it. You defined function . But not using it. To use it ,first call the function... edit: add calling statement search() statement at end..
15th Jun 2021, 1:33 PM
Jayakrishna 🇼🇳