How to validate a previuos input data? | Sololearn: Learn to code for FREE!


How to validate a previuos input data?

Hi guys! I am trying to solve the last excersice from python for benigners course. But can do the input validation, before to search function declaration, really did not comprehend how can the code check if the input matches with the second part on the code. Somebody can explain me?

7/22/2021 11:51:12 PM

Victor Gonzalez

3 Answers

New Answer


You need to give 2 inputs then define a function inside that split the first input that is the sentence one. Then check it out using if statement whether the word is in sentence or not. I hope it is understood by you


Thankyou Aysha 🙏☺️


Most welcome Victor Gonzalez