commands = ["music play", "music stop", "weather today", "alarm set"]
input = "mus"
answer = []
for i in range(len(commands)):
if input in commands[i]:
answer.append(commands[i])
print(answer)
To embed this project on your website, copy the following code and paste it into your website's HTML: