Can you check for a specific word in batch of other letters (in Python) eg for the word 'hello' in ' "sojehkhellodjkdfe"'....... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you check for a specific word in batch of other letters (in Python) eg for the word 'hello' in ' "sojehkhellodjkdfe"'.......

24th Aug 2022, 10:18 AM
Derrick Okello
2 Answers
+ 1
You can use the "in" operator: Example: "x" in "text"
24th Aug 2022, 10:29 AM
Lisa
Lisa - avatar
+ 1
yes like print("hello" in "ghdvgcdvhellohdhdgh") try this Derrick remember me
8th Dec 2022, 4:02 PM
Chris Jonathan
Chris Jonathan - avatar