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!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuestas
+ 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