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!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antworten
+ 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