210k views
2 votes
Test if the word mold is stored in the variable word. Computer science.

1 Answer

5 votes

Answer:

word = str("Enter a word: ")

if "mold" in word:

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

else:

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

User Stasiekz
by
5.7k points