How do I check if a piece of text is inside another text?

Asked by stem_mind · 6 months ago

1 Answer

45
amorebise · 6 months ago Top Answer

In Python, we use the word in. You can say if "rice" in "jollof rice":. It will be True!

It’s a very natural way of writing. Python was designed to feel like you are speaking English, which is why I love it so much for beginners in Nigeria.

Log in to add a comment.