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

User Mcrute
by
4.6k 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!

User Dcrearer
by
4.2k points