asked 168k views
4 votes
Test if the word mold is stored in the variable word.

asked
User Mcrute
by
8.5k points

1 Answer

6 votes

word = whatever value you want

if "mold" in word:

print("The word mold is in the variable word")

else:

print("The word mold is not in the variable word")

I hope this helps!

answered
User Dcrearer
by
7.6k points

No related questions found