How to validate a previuos input data? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

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?

22nd Jul 2021, 11:51 PM
Victor Gonzalez
Victor Gonzalez - avatar
3 Answers
+ 3
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
23rd Jul 2021, 1:26 AM
Aysha
Aysha - avatar
+ 1
Thankyou Aysha šŸ™ā˜ŗļø
23rd Jul 2021, 1:34 AM
Victor Gonzalez
Victor Gonzalez - avatar
+ 1
Most welcome Victor Gonzalez
23rd Jul 2021, 1:35 AM
Aysha
Aysha - avatar