15.8k views
3 votes
Write a program to Test if mold is stored in the variable word.

1 Answer

0 votes

word = whatever value you want.

if "mold" in word:

print("Mold is in the variable word.")

else:

print("Mold is not in the variable word.")

User Kamel Mili
by
4.6k points